mirror of
https://github.com/internetee/registry.git
synced 2025-08-04 08:52:04 +02:00
Revert "Merge pull request #1902 from internetee/1900-removing-registry-lock-should-not-remove-statuses-set-prior-to-setting-it"
This reverts commitf6fcf15fff
, reversing changes made to26618a3c90
.
This commit is contained in:
parent
c1dba6c8f6
commit
eac7dd352b
14 changed files with 10 additions and 172 deletions
|
@ -1,10 +1,6 @@
|
|||
module Domain::ForceDelete # rubocop:disable Metrics/ModuleLength
|
||||
extend ActiveSupport::Concern
|
||||
|
||||
FORCE_DELETE_STATUSES = [DomainStatus::FORCE_DELETE,
|
||||
DomainStatus::SERVER_RENEW_PROHIBITED,
|
||||
DomainStatus::SERVER_TRANSFER_PROHIBITED].freeze
|
||||
|
||||
included do
|
||||
store_accessor :force_delete_data,
|
||||
:force_delete_type,
|
||||
|
@ -56,7 +52,6 @@ module Domain::ForceDelete # rubocop:disable Metrics/ModuleLength
|
|||
|
||||
def cancel_force_delete
|
||||
Domains::CancelForceDelete::CancelForceDelete.run(domain: self)
|
||||
# self.statuses = force_delete_domain_statuses_history
|
||||
end
|
||||
|
||||
def outzone_date
|
||||
|
|
|
@ -36,10 +36,9 @@ module Domain::RegistryLockable
|
|||
|
||||
transaction do
|
||||
LOCK_STATUSES.each do |domain_status|
|
||||
statuses.delete([domain_status])
|
||||
statuses.delete(domain_status)
|
||||
end
|
||||
self.locked_by_registrant_at = nil
|
||||
self.statuses = admin_store_statuses_history || []
|
||||
alert_registrar_lock_changes!(lock: false)
|
||||
|
||||
save!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue