mirror of
https://github.com/internetee/registry.git
synced 2025-07-25 12:08: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
|
||||
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue