mirror of
https://github.com/internetee/registry.git
synced 2025-08-03 16:32:04 +02:00
Fix updating procedure
This commit is contained in:
parent
6ab08dbd67
commit
252d39464a
4 changed files with 20 additions and 3 deletions
|
@ -33,10 +33,12 @@ module Domains
|
|||
end
|
||||
|
||||
def clean_pendings!
|
||||
domain.is_admin = true
|
||||
domain.registrant_verification_token = nil
|
||||
domain.registrant_verification_asked_at = nil
|
||||
domain.pending_json = {}
|
||||
clear_statuses
|
||||
domain.save
|
||||
end
|
||||
|
||||
def clear_statuses
|
||||
|
|
|
@ -3,7 +3,6 @@ module Domains
|
|||
class ProcessUpdateConfirmed < Base
|
||||
def execute
|
||||
ActiveRecord::Base.transaction do
|
||||
domain.is_admin = true
|
||||
old_registrant = domain.registrant
|
||||
notify_registrar(:poll_pending_update_confirmed_by_registrant)
|
||||
|
||||
|
@ -17,7 +16,6 @@ module Domains
|
|||
preclean_pendings
|
||||
update_domain
|
||||
clean_pendings!
|
||||
domain.save(validate: false)
|
||||
|
||||
WhoisRecord.find_by(domain_id: domain.id).save # need to reload model
|
||||
end
|
||||
|
|
|
@ -11,7 +11,6 @@ module Domains
|
|||
|
||||
preclean_pendings
|
||||
clean_pendings!
|
||||
domain.save(validate: false)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue