mirror of
https://github.com/internetee/registry.git
synced 2025-07-30 22:46:22 +02:00
Remove domain namespace
This commit is contained in:
parent
bce39e3404
commit
e62f0a077a
19 changed files with 143 additions and 157 deletions
|
@ -0,0 +1,17 @@
|
|||
module ForceDeleteInteraction
|
||||
class PostSetProcess < Base
|
||||
def execute
|
||||
statuses = domain.statuses
|
||||
# Stop all pending actions
|
||||
statuses.delete(DomainStatus::PENDING_UPDATE)
|
||||
statuses.delete(DomainStatus::PENDING_TRANSFER)
|
||||
statuses.delete(DomainStatus::PENDING_RENEW)
|
||||
statuses.delete(DomainStatus::PENDING_CREATE)
|
||||
|
||||
# Allow deletion
|
||||
statuses.delete(DomainStatus::CLIENT_DELETE_PROHIBITED)
|
||||
statuses.delete(DomainStatus::SERVER_DELETE_PROHIBITED)
|
||||
domain.save(validate: false)
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue