Add notification on autoFD

This commit is contained in:
Alex Sherman 2021-03-22 14:21:08 +05:00
parent 81c21db392
commit 91093b274d
6 changed files with 42 additions and 10 deletions

View file

@ -45,9 +45,9 @@ module Domain::ForceDelete # rubocop:disable Metrics/ModuleLength
statuses.include?(DomainStatus::FORCE_DELETE)
end
def schedule_force_delete(type: :fast_track, notify_by_email: false, reason: nil)
def schedule_force_delete(type: :fast_track, notify_by_email: false, reason: nil, email: nil)
Domains::ForceDelete::SetForceDelete.run(domain: self, type: type, reason: reason,
notify_by_email: notify_by_email)
notify_by_email: notify_by_email, email: email)
end
def cancel_force_delete