Story: 105754008 Setting domain from queue that it's valid

This commit is contained in:
Vladimir Krylov 2015-10-26 19:39:37 +02:00
parent 1aa41257c5
commit bdfa56e8fc

View file

@ -14,6 +14,8 @@ class DomainUpdateConfirmJob < Que::Job
DomainMailer.pending_update_rejected_notification_for_new_registrant(domain).deliver_now DomainMailer.pending_update_rejected_notification_for_new_registrant(domain).deliver_now
domain.poll_message!(:poll_pending_update_rejected_by_registrant) domain.poll_message!(:poll_pending_update_rejected_by_registrant)
domain.clean_pendings! domain.clean_pendings!
domain.instance_variable_set("@changed_attributes", domain.changed_attributes.merge("statuses"=>[]))
domain.save
end end
destroy # it's best to destroy the job in the same transaction destroy # it's best to destroy the job in the same transaction
end end