mirror of
https://github.com/internetee/registry.git
synced 2025-08-04 00:42:04 +02:00
Add checking if any of domain emails still got bounce related
This commit is contained in:
parent
39d392696a
commit
95a2b705b4
3 changed files with 46 additions and 2 deletions
|
@ -668,6 +668,10 @@ class Domain < ApplicationRecord
|
|||
end
|
||||
end
|
||||
|
||||
def all_related_emails
|
||||
(admin_contacts.emails + tech_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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue