115693873-pt_added

This commit is contained in:
Stas 2016-04-08 16:52:27 +03:00
parent 1882af7282
commit c447bc4d64
2 changed files with 2 additions and 0 deletions

View file

@ -14,6 +14,7 @@ class UpdateWhoisRecordJob < Que::Job
else
send "delete_#{type}", name
end
::PaperTrail.whodunnit = "job - #{self.class.name} - #{type}"
end
end

View file

@ -434,6 +434,7 @@ class Domain < ActiveRecord::Base
# TODO: if this were to ever return true, that would be wrong. EPP would report sucess pending
return true unless registrant_verification_asked?
pending_delete_confirmation!
::PaperTrail.whodunnit = "#{self.class.name} - #{__method__}"
save(validate: false) # should check if this did succeed
DomainMailer.pending_deleted(id, registrant_id_was, deliver_emails).deliver