mirror of
https://github.com/internetee/registry.git
synced 2025-08-05 17:28:18 +02:00
improve notification feature
This commit is contained in:
parent
053382ffa3
commit
35f60e53e5
5 changed files with 37 additions and 16 deletions
|
@ -5,13 +5,12 @@ module ContactNotification
|
|||
domain.registrar.notifications.create(text: text)
|
||||
end
|
||||
|
||||
def notify_tech_contact(domain:)
|
||||
text = "DNSKEYS for #{domain.name} are invalid!"
|
||||
def notify_tech_contact(domain:, text:)
|
||||
# text = "DNSKEYS for #{domain.name} are invalid!"
|
||||
domain.tech_contacts.each do |tech|
|
||||
contact = Contact.find(tech.id)
|
||||
|
||||
ContactInformMailer.notify(contact: contact, subject: text)
|
||||
ContactInformMailer.notify(contact: contact, domain: domain, subject: text).deliver_now
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue