demarches-normaliennes/app/jobs/send_closing_notification_job.rb
2024-09-24 21:35:00 +02:00

11 lines
344 B
Ruby

# frozen_string_literal: true
class SendClosingNotificationJob < ApplicationJob
queue_as :low # no rush on this one
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