Remove old Notifications::RemoveAllJob (#5547) [deploy]

This commit is contained in:
Lucas Hiago 2020-01-17 13:18:36 -03:00 committed by Molly Struve
parent 9ef1ae512b
commit e5a6d7573f

View file

@ -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