Remove old Notifications::RemoveAllJob (#5547) [deploy]
This commit is contained in:
parent
9ef1ae512b
commit
e5a6d7573f
1 changed files with 0 additions and 11 deletions
|
|
@ -1,11 +0,0 @@
|
|||
module Notifications
|
||||
class RemoveAllJob < ApplicationJob
|
||||
queue_as :remove_all_notifications
|
||||
|
||||
def perform(notifiable_ids, notifiable_type, service = Notifications::RemoveAll)
|
||||
return unless %w[Article Comment Mention].include?(notifiable_type) && notifiable_ids.present?
|
||||
|
||||
service.call(Array.wrap(notifiable_ids), notifiable_type)
|
||||
end
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Reference in a new issue