mirror of
https://github.com/internetee/registry.git
synced 2025-07-27 21:16:12 +02:00
11 lines
280 B
Ruby
11 lines
280 B
Ruby
class CheckForceDeleteJob < ApplicationJob
|
|
def perform(contact_ids)
|
|
contacts = Contact.find(contact_ids)
|
|
|
|
contacts.each do |contact|
|
|
next unless contact.need_to_start_force_delete?
|
|
|
|
Domains::ForceDeleteEmail::Base.run(email: contact.email)
|
|
end
|
|
end
|
|
end
|