mirror of
https://github.com/internetee/registry.git
synced 2025-08-11 20:19:34 +02:00
Refactored whois body
This commit is contained in:
parent
7ff09c75e3
commit
be19176a00
1 changed files with 3 additions and 4 deletions
|
@ -261,11 +261,10 @@ class Domain < ActiveRecord::Base
|
||||||
changed: #{registrar.updated_at.to_s(:db)}
|
changed: #{registrar.updated_at.to_s(:db)}
|
||||||
EOS
|
EOS
|
||||||
|
|
||||||
if whois_body != new_whois_body
|
return if whois_body == new_whois_body
|
||||||
update_column(whois_body: new_whois_body)
|
update_column(whois_body: new_whois_body)
|
||||||
update_whois_server
|
update_whois_server
|
||||||
end
|
end
|
||||||
end
|
|
||||||
handle_asynchronously :update_whois_body
|
handle_asynchronously :update_whois_body
|
||||||
# rubocop:enable Metrics/MethodLength
|
# rubocop:enable Metrics/MethodLength
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue