Files
project-work/worker-toolkit-flaredown/repo/backend/app/jobs/notification_dispatcher.rb

10 lines
220 B
Ruby

class NotificationDispatcher
include Sidekiq::Worker
def perform
Notification.distinct(:encrypted_notify_user_id).each do |encrypted_id|
GroupNotifiersPerUser.perform_async(encrypted_id)
end
end
end