mirror of
https://github.com/internetee/registry.git
synced 2025-05-28 15:19:55 +02:00
Story#117612931 - contact touch is not regenerating all whoises once and once again
This commit is contained in:
parent
3dfe64995f
commit
10b7ce3eea
1 changed files with 3 additions and 0 deletions
|
@ -551,6 +551,9 @@ class Contact < ActiveRecord::Base
|
|||
end
|
||||
|
||||
def update_related_whois_records
|
||||
# not doing anything if no real changes
|
||||
return if changes.slice(*(self.class.column_names - ["updated_at", "created_at", "statuses", "status_notes"])).empty?
|
||||
|
||||
names = related_domain_descriptions.keys
|
||||
UpdateWhoisRecordJob.enqueue(names, :domain) if names.present?
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue