mirror of
https://github.com/internetee/registry.git
synced 2025-07-24 03:30:33 +02:00
Remove domain namespace
This commit is contained in:
parent
bce39e3404
commit
e62f0a077a
19 changed files with 143 additions and 157 deletions
21
app/interactions/force_delete_interaction/notify_by_email.rb
Normal file
21
app/interactions/force_delete_interaction/notify_by_email.rb
Normal file
|
@ -0,0 +1,21 @@
|
|||
module ForceDeleteInteraction
|
||||
class NotifyByEmail < Base
|
||||
def execute
|
||||
return unless notify_by_email
|
||||
|
||||
if type == :fast_track
|
||||
send_email
|
||||
domain.update(contact_notification_sent_date: Time.zone.today)
|
||||
else
|
||||
domain.update(template_name: domain.notification_template)
|
||||
end
|
||||
end
|
||||
|
||||
def send_email
|
||||
DomainDeleteMailer.forced(domain: domain,
|
||||
registrar: domain.registrar,
|
||||
registrant: domain.registrant,
|
||||
template_name: domain.notification_template).deliver_now
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue