mirror of
https://github.com/internetee/registry.git
synced 2025-08-05 01:11:43 +02:00
DomainCron: Don't send force delete mail if template empty
This commit is contained in:
parent
510e981b04
commit
6e72bb03b3
2 changed files with 16 additions and 1 deletions
|
@ -15,7 +15,7 @@ module Concerns
|
|||
domain.registrar.notifications.create!(text: I18n.t('grace_period_started_domain',
|
||||
domain_name: domain.name,
|
||||
date: domain.force_delete_start))
|
||||
send_mail(domain)
|
||||
send_mail(domain) if domain.template_name.present?
|
||||
domain.update(contact_notification_sent_date: Time.zone.today)
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue