mirror of
https://github.com/internetee/registry.git
synced 2025-08-06 01:35:10 +02:00
Merge branch '107821878-emails' into staging
This commit is contained in:
commit
58db716af7
3 changed files with 6 additions and 6 deletions
|
@ -438,6 +438,7 @@ class Domain < ActiveRecord::Base
|
|||
end
|
||||
|
||||
def pending_update!
|
||||
old_registrar_id = registrar_id
|
||||
return true if pending_update?
|
||||
self.epp_pending_update = true # for epp
|
||||
|
||||
|
@ -449,7 +450,7 @@ class Domain < ActiveRecord::Base
|
|||
new_registrant_email = registrant.email
|
||||
new_registrant_name = registrant.name
|
||||
|
||||
DomainMailer.pending_update_request_for_old_registrant(id, deliver_emails).deliver
|
||||
DomainMailer.pending_update_request_for_old_registrant(id, old_registrar_id, deliver_emails).deliver
|
||||
DomainMailer.pending_update_notification_for_new_registrant(id, deliver_emails).deliver
|
||||
|
||||
reload # revert back to original
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue