From 2802fcd0af8e8b255f4705f03b8a507087f09320 Mon Sep 17 00:00:00 2001 From: Stas Date: Tue, 15 Dec 2015 16:55:02 +0200 Subject: [PATCH] 110067564-job type and registrar id changes --- app/models/domain.rb | 2 +- app/models/registrant_verification.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/domain.rb b/app/models/domain.rb index 7858b3d36..53badd3fd 100644 --- a/app/models/domain.rb +++ b/app/models/domain.rb @@ -439,7 +439,7 @@ class Domain < ActiveRecord::Base end def pending_update! - old_registrant_id = registrant_id + old_registrant_id = registrant_id_was return true if pending_update? self.epp_pending_update = true # for epp diff --git a/app/models/registrant_verification.rb b/app/models/registrant_verification.rb index d0c015ecb..29bde4b70 100644 --- a/app/models/registrant_verification.rb +++ b/app/models/registrant_verification.rb @@ -23,7 +23,7 @@ class RegistrantVerification < ActiveRecord::Base def domain_registrant_change_reject! self.action_type = DOMAIN_REGISTRANT_CHANGE self.action = REJECTED - DomainUpdateConfirmJob.enqueue domain.id, REJECTED if save + DomainUpdateConfirmJob.run domain.id, REJECTED if save end def domain_registrant_delete_confirm!