2024-04-29 00:17:15 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2024-02-15 11:09:00 +01:00
|
|
|
class SendClosingNotificationJob < ApplicationJob
|
2024-09-24 21:24:22 +02:00
|
|
|
queue_as :low # no rush on this one
|
|
|
|
|
2024-02-15 11:09:00 +01:00
|
|
|
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
|