update contact notification

This commit is contained in:
olegphenomenon 2022-01-05 15:58:32 +02:00
parent 374c434de4
commit d4fd8dc0ee
2 changed files with 39 additions and 1 deletions

View file

@ -7,7 +7,7 @@ module ContactNotification
def notify_tech_contact(domain:)
text = "DNSKEYS for #{domain.name} are invalid!"
domain.tech_domain_contacts.each do |tech|
domain.tech_contacts.each do |tech|
contact = Contact.find(tech.id)
ContactInformMailer.notify(contact: contact, subject: text)