mirror of
https://github.com/internetee/registry.git
synced 2025-07-26 04:28:27 +02:00
Story#110392672 - do not run RegenerateWhoisRecordJob on empty domains
This commit is contained in:
parent
dd421f633b
commit
769e3f1a1f
1 changed files with 2 additions and 1 deletions
|
@ -499,7 +499,8 @@ class Contact < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
def update_related_whois_records
|
def update_related_whois_records
|
||||||
RegenerateWhoisRecordJob.enqueue related_domain_descriptions.keys, :name
|
ids = related_domain_descriptions.keys
|
||||||
|
RegenerateWhoisRecordJob.enqueue(ids, :name) if ids.present?
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue