mirror of
https://github.com/internetee/registry.git
synced 2025-07-29 22:16:19 +02:00
updated WhoisUpdateJob condition for running
This commit is contained in:
parent
9d036f9af3
commit
bbdf44583c
2 changed files with 2 additions and 1 deletions
|
@ -4,6 +4,7 @@ module Domains
|
|||
def execute
|
||||
return unless notify_by_email
|
||||
|
||||
domain.skip_whois_record_update = false
|
||||
if type == :fast_track
|
||||
send_email
|
||||
domain.update(contact_notification_sent_date: Time.zone.today)
|
||||
|
|
|
@ -11,7 +11,7 @@ module Domains
|
|||
|
||||
# Allow deletion
|
||||
statuses.delete(DomainStatus::CLIENT_DELETE_PROHIBITED)
|
||||
domain.skip_whois_record_update = false
|
||||
domain.skip_whois_record_update = notify_by_email ? true : false
|
||||
|
||||
domain.save(validate: false)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue