demarches-normaliennes/app/jobs/send_closing_notification_job.rb
2024-03-11 15:48:28 +01:00

7 lines
274 B
Ruby

class SendClosingNotificationJob < ApplicationJob
def perform(user_ids, content, procedure)
User.where(id: user_ids).find_each do |user|
Expired::MailRateLimiter.new().send_with_delay(UserMailer.notify_after_closing(user, content, @procedure))
end
end
end