mirror of
https://github.com/internetee/registry.git
synced 2025-06-08 13:44:47 +02:00
Add one minute before sending registrant change confirm emails
This commit is contained in:
parent
4199acdf00
commit
3d43624718
1 changed files with 3 additions and 2 deletions
|
@ -424,8 +424,9 @@ class Domain < ApplicationRecord
|
||||||
new_registrant_email = registrant.email
|
new_registrant_email = registrant.email
|
||||||
new_registrant_name = registrant.name
|
new_registrant_name = registrant.name
|
||||||
|
|
||||||
RegistrantChangeConfirmEmailJob.perform_later(id, new_registrant_id)
|
send_time = Time.zone.now + 1.minute
|
||||||
RegistrantChangeNoticeEmailJob.perform_later(id, new_registrant_id)
|
RegistrantChangeConfirmEmailJob.set(wait_until: send_time).perform_later(id, new_registrant_id)
|
||||||
|
RegistrantChangeNoticeEmailJob.set(wait_until: send_time).perform_later(id, new_registrant_id)
|
||||||
|
|
||||||
reload
|
reload
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue