improve notification feature

This commit is contained in:
olegphenomenon 2022-01-10 12:05:32 +02:00
parent 053382ffa3
commit 35f60e53e5
5 changed files with 37 additions and 16 deletions

View file

@ -49,8 +49,7 @@ class ValidateDnssecJob < ApplicationJob
text = "DNSKEYS for #{domain.name} are invalid!"
logger.info text
ContactNotification.notify_registrar(domain: domain, text: text)
ContactNotification.notify_tech_contact(domain: domain)
ContactNotification.notify_tech_contact(domain: domain, text: text)
end
def validate(hostname:, domain:, type: 'DNSKEY', klass: 'IN')