mirror of
https://github.com/internetee/registry.git
synced 2025-05-19 02:39:37 +02:00
Story #104525314 - remove pendingDeleteConfirmation when declined or also go to pendingDelete when confirmed
This commit is contained in:
parent
a9c805f2ce
commit
08b9d0251f
2 changed files with 3 additions and 0 deletions
|
@ -10,6 +10,7 @@ class DomainDeleteConfirmJob < Que::Job
|
|||
domain.clean_pendings!
|
||||
when RegistrantVerification::REJECTED
|
||||
DomainMailer.pending_delete_rejected_notification(domain).deliver_now
|
||||
domain.statuses.delete(DomainStatus::PENDING_DELETE_CONFIRMATION)
|
||||
domain.poll_message!(:poll_pending_delete_rejected_by_registrant)
|
||||
domain.clean_pendings!
|
||||
end
|
||||
|
|
|
@ -491,9 +491,11 @@ class Epp::Domain < Domain
|
|||
|
||||
def apply_pending_delete!
|
||||
preclean_pendings
|
||||
statuses.delete(DomainStatus::PENDING_DELETE_CONFIRMATION)
|
||||
statuses.delete(DomainStatus::PENDING_DELETE)
|
||||
DomainMailer.delete_confirmation(self).deliver_now
|
||||
|
||||
# TODO: confirm that this actually makes sense
|
||||
clean_pendings! if valid? && set_pending_delete!
|
||||
true
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue