Fix some CC issues

This commit is contained in:
Karl Erik Õunapuu 2020-12-29 13:16:45 +02:00
parent 221e4ba578
commit 7caa544c83
No known key found for this signature in database
GPG key ID: C9DD647298A34764
8 changed files with 50 additions and 53 deletions

View file

@ -129,26 +129,6 @@ class Epp::Domain < Domain
self.legal_document_id = doc.id
end
def apply_pending_update!
preclean_pendings
user = ApiUser.find(pending_json['current_user_id'])
frame = pending_json['frame'] ? pending_json['frame'].with_indifferent_access : {}
self.statuses.delete(DomainStatus::PENDING_UPDATE)
self.upid = user.registrar.id if user.registrar
self.up_date = Time.zone.now
return unless Actions::DomainUpdate.new(self, frame, true).call
clean_pendings!
save!
WhoisRecord.find_by(domain_id: id).save # need to reload model
true
end
def apply_pending_delete!
preclean_pendings
statuses.delete(DomainStatus::PENDING_DELETE_CONFIRMATION)