mirror of
https://github.com/internetee/registry.git
synced 2025-06-08 13:44:47 +02:00
Fix WHOIS generation for domains at auction
This commit is contained in:
parent
98c415f672
commit
1f70df9348
1 changed files with 4 additions and 0 deletions
|
@ -8,6 +8,10 @@ module Whois
|
|||
|
||||
def self.refresh(domain_name)
|
||||
if domain_name.at_auction?
|
||||
# Remove original record since `Domain#update_whois_record` callback is disabled when
|
||||
# domain is at auction
|
||||
find_by(name: domain_name.to_s).try(:destroy!)
|
||||
|
||||
create!(name: domain_name, json: { name: domain_name.to_s,
|
||||
status: 'AtAuction',
|
||||
disclaimer: disclaimer })
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue