mirror of
https://github.com/internetee/registry.git
synced 2025-08-01 15:34:41 +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
|
end
|
||||||
|
|
||||||
def update_related_whois_records
|
def update_related_whois_records
|
||||||
|
Rails.logger.info "\n\n============ update_related_whois_records ==========="
|
||||||
# not doing anything if no real changes
|
# not doing anything if no real changes
|
||||||
ignored_columns = %w[updated_at created_at statuses status_notes]
|
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?
|
return if saved_changes.slice(*(self.class.column_names - ignored_columns)).empty?
|
||||||
|
|
||||||
names = related_domain_descriptions.keys
|
names = related_domain_descriptions.keys
|
||||||
|
Rails.logger.info "names: #{names}"
|
||||||
UpdateWhoisRecordJob.perform_later(names, 'domain') if names.present?
|
UpdateWhoisRecordJob.perform_later(names, 'domain') if names.present?
|
||||||
|
Rails.logger.info "============\n\n"
|
||||||
end
|
end
|
||||||
|
|
||||||
def children_log
|
def children_log
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue