mirror of
https://github.com/internetee/registry.git
synced 2025-08-04 00:42:04 +02:00
Remove more statuses when applying forceDelete #2846
This commit is contained in:
parent
1d51d5fdab
commit
147948548f
2 changed files with 42 additions and 2 deletions
|
@ -539,6 +539,10 @@ class Domain < ActiveRecord::Base
|
|||
statuses << DomainStatus::PENDING_DELETE
|
||||
statuses.delete(DomainStatus::CLIENT_DELETE_PROHIBITED)
|
||||
statuses.delete(DomainStatus::SERVER_DELETE_PROHIBITED)
|
||||
statuses.delete(DomainStatus::PENDING_UPDATE)
|
||||
statuses.delete(DomainStatus::PENDING_TRANSFER)
|
||||
statuses.delete(DomainStatus::PENDING_RENEW)
|
||||
statuses.delete(DomainStatus::PENDING_CREATE)
|
||||
|
||||
self.force_delete_at = Time.zone.now + Setting.redemption_grace_period.days unless force_delete_at
|
||||
save(validate: false)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue