Add checking if any of domain emails still got bounce related

This commit is contained in:
Alex Sherman 2021-04-06 12:36:32 +05:00
parent 39d392696a
commit 95a2b705b4
3 changed files with 46 additions and 2 deletions

View file

@ -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