mirror of
https://github.com/internetee/registry.git
synced 2025-07-31 23:16:23 +02:00
handling update whois job issue
This commit is contained in:
parent
549c390b2e
commit
12fe938152
1 changed files with 4 additions and 0 deletions
|
@ -539,12 +539,16 @@ class Contact < ApplicationRecord
|
|||
end
|
||||
|
||||
def update_related_whois_records
|
||||
Rails.logger.info "\n\n============ update_related_whois_records ==========="
|
||||
# not doing anything if no real changes
|
||||
ignored_columns = %w[updated_at created_at statuses status_notes]
|
||||
Rails.logger.info saved_changes.slice(*(self.class.column_names - ignored_columns)).empty?
|
||||
return if saved_changes.slice(*(self.class.column_names - ignored_columns)).empty?
|
||||
|
||||
names = related_domain_descriptions.keys
|
||||
Rails.logger.info "names: #{names}"
|
||||
UpdateWhoisRecordJob.perform_later(names, 'domain') if names.present?
|
||||
Rails.logger.info "============\n\n"
|
||||
end
|
||||
|
||||
def children_log
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue