mirror of
https://github.com/internetee/registry.git
synced 2025-07-31 23:16:23 +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
|
def execute
|
||||||
return unless notify_by_email
|
return unless notify_by_email
|
||||||
|
|
||||||
|
domain.skip_whois_record_update = false
|
||||||
if type == :fast_track
|
if type == :fast_track
|
||||||
send_email
|
send_email
|
||||||
domain.update(contact_notification_sent_date: Time.zone.today)
|
domain.update(contact_notification_sent_date: Time.zone.today)
|
||||||
|
|
|
@ -11,7 +11,7 @@ module Domains
|
||||||
|
|
||||||
# Allow deletion
|
# Allow deletion
|
||||||
statuses.delete(DomainStatus::CLIENT_DELETE_PROHIBITED)
|
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)
|
domain.save(validate: false)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue