mirror of
https://github.com/internetee/registry.git
synced 2025-08-05 01:11:43 +02:00
Set single poll message for force delete
This commit is contained in:
parent
f1ceff818e
commit
a9ce9dba51
4 changed files with 16 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue