Add tech contacts & info & name@name to force delete mailer

See #1477
This commit is contained in:
Alex Sherman 2020-01-20 13:50:38 +05:00
parent f1ceff818e
commit 6f8a8f6435
3 changed files with 12 additions and 3 deletions

View file

@ -587,6 +587,15 @@ class Domain < ApplicationRecord
(admin_contacts.emails + [registrant.email]).uniq
end
def force_delete_contact_emails
(primary_contact_emails + tech_contacts.pluck(:email) +
["info@#{name}", "#{prepared_domain_name}@#{name}"]).uniq
end
def prepared_domain_name
name.split('.')&.first
end
def new_registrant_email
pending_json['new_registrant_email']
end