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