mirror of
https://github.com/internetee/registry.git
synced 2025-08-05 17:28:18 +02:00
parent
f1ceff818e
commit
6f8a8f6435
3 changed files with 12 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue