mirror of
https://github.com/internetee/registry.git
synced 2025-06-09 06:04:56 +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)
|
def self.refresh(domain_name)
|
||||||
if domain_name.at_auction?
|
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,
|
create!(name: domain_name, json: { name: domain_name.to_s,
|
||||||
status: 'AtAuction',
|
status: 'AtAuction',
|
||||||
disclaimer: disclaimer })
|
disclaimer: disclaimer })
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue