mirror of
https://github.com/internetee/registry.git
synced 2025-06-09 22:24:47 +02:00
Move rejected delete procedures to interactor
This commit is contained in:
parent
5a059e86bb
commit
ce07c5eae8
1 changed files with 1 additions and 3 deletions
|
@ -2,10 +2,8 @@ module Domains
|
|||
module DeleteConfirm
|
||||
class ProcessDeleteRejected < Base
|
||||
def execute
|
||||
domain.statuses.delete(DomainStatus::PENDING_DELETE_CONFIRMATION)
|
||||
domain.notify_registrar(:poll_pending_delete_rejected_by_registrant)
|
||||
|
||||
domain.cancel_pending_delete
|
||||
notify_registrar(:poll_pending_delete_rejected_by_registrant)
|
||||
domain.save(validate: false)
|
||||
raise_errors!(domain)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue