mirror of
https://github.com/internetee/registry.git
synced 2025-06-07 13:15:40 +02:00
Merge branch '1177-bulk-force-delete' of https://github.com/internetee/registry into 1177-bulk-force-delete
This commit is contained in:
commit
bea68f7426
1 changed files with 3 additions and 4 deletions
|
@ -154,12 +154,11 @@ module Concerns::Domain::ForceDelete # rubocop:disable Metrics/ModuleLength
|
||||||
Time.zone.today + Setting.expire_warning_period.days + Setting.redemption_grace_period.days
|
Time.zone.today + Setting.expire_warning_period.days + Setting.redemption_grace_period.days
|
||||||
end
|
end
|
||||||
|
|
||||||
# Uncomment when we have template for phone / email as well
|
# Uncomment when we have EMAIL / PHONE mail templates
|
||||||
def notify_parties(_reason)
|
def notify_parties(_reason)
|
||||||
ent = notification_template
|
# ent = notification_template if %w[ENTITY_BURIED EMAIL].include? reason
|
||||||
# if %w[ENTITY_BURIED EMAIL].include? reason
|
|
||||||
# ent ||= reason.downcase
|
# ent ||= reason.downcase
|
||||||
self.template_name = ent
|
self.template_name = notification_template
|
||||||
|
|
||||||
save(validate: false)
|
save(validate: false)
|
||||||
registrar.notifications.create!(text: I18n.t('force_delete_set_on_domain',
|
registrar.notifications.create!(text: I18n.t('force_delete_set_on_domain',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue