mirror of
https://github.com/internetee/registry.git
synced 2025-05-18 18:29:40 +02:00
Merge branch 'story/110392672-domains-async' into story/113066359-optimization
# Conflicts: # app/jobs/regenerate_registrar_whoises_job.rb # app/jobs/regenerate_whois_record_job.rb
This commit is contained in:
commit
53006cb4e9
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
|
||||||
related_domain_descriptions.each{ |x, y| WhoisRecord.find_by(name: x).try(:save) }
|
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