mirror of
https://github.com/internetee/registry.git
synced 2025-07-23 03:06:14 +02:00
Merge pull request #1609 from internetee/1604-updating-whois-after-contact-update
Fix not running whois update after contact update
This commit is contained in:
commit
5e492afdba
3 changed files with 12 additions and 2 deletions
|
@ -504,7 +504,8 @@ class Contact < ApplicationRecord
|
|||
|
||||
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?
|
||||
ignored_columns = %w[updated_at created_at statuses status_notes]
|
||||
return if saved_changes.slice(*(self.class.column_names - ignored_columns)).empty?
|
||||
|
||||
names = related_domain_descriptions.keys
|
||||
UpdateWhoisRecordJob.enqueue(names, 'domain') if names.present?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue