Set single poll message for force delete

This commit is contained in:
Alex Sherman 2020-01-20 15:56:58 +05:00
parent f1ceff818e
commit a9ce9dba51
4 changed files with 16 additions and 5 deletions

View file

@ -88,6 +88,15 @@ module Concerns::Domain::ForceDelete # rubocop:disable Metrics/ModuleLength
registrar.notifications.create!(text: I18n.t('force_delete_cancelled', domain_name: name))
end
def outzone_date
(force_delete_start || valid_to) + Setting.expire_warning_period.days
end
def purge_date
force_delete_date || valid_to + Setting.expire_warning_period.days +
Setting.redemption_grace_period.days + 1.day
end
private
def calculate_soft_delete_date