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!