mirror of
https://github.com/internetee/registry.git
synced 2025-06-08 05:34:46 +02:00
Remove unused job
This commit is contained in:
parent
1b7a6f9005
commit
51e86a0dd5
1 changed files with 0 additions and 21 deletions
|
@ -1,21 +0,0 @@
|
||||||
class RegistrantChangeExpiredEmailJob < Que::Job
|
|
||||||
def run(domain_id:, send_to:)
|
|
||||||
domain = Domain.find(domain_id)
|
|
||||||
log(domain)
|
|
||||||
RegistrantChangeMailer.expired(domain: domain,
|
|
||||||
registrar: domain.registrar,
|
|
||||||
registrant: domain.registrant,
|
|
||||||
send_to: send_to).deliver_now
|
|
||||||
end
|
|
||||||
|
|
||||||
private
|
|
||||||
|
|
||||||
def log(domain)
|
|
||||||
message = "Send RegistrantChangeMailer#expired email for domain #{domain.name} (##{domain.id}) to #{domain.new_registrant_email}"
|
|
||||||
logger.info(message)
|
|
||||||
end
|
|
||||||
|
|
||||||
def logger
|
|
||||||
Rails.logger
|
|
||||||
end
|
|
||||||
end
|
|
Loading…
Add table
Add a link
Reference in a new issue