mirror of
https://github.com/internetee/registry.git
synced 2025-08-01 23:42:04 +02:00
parent
39d7c6ad1d
commit
ad0220088a
30 changed files with 697 additions and 59 deletions
11
app/jobs/domain_expiration_email_job.rb
Normal file
11
app/jobs/domain_expiration_email_job.rb
Normal file
|
@ -0,0 +1,11 @@
|
|||
class DomainExpirationEmailJob < ActiveJob::Base
|
||||
queue_as :default
|
||||
|
||||
def perform(domain_id:)
|
||||
domain = Domain.find(domain_id)
|
||||
|
||||
return if domain.registered?
|
||||
|
||||
DomainMailer.expiration(domain).deliver!
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue