mirror of
https://github.com/internetee/registry.git
synced 2025-06-08 13:44:47 +02:00
On status update, create WHOIS records for domains in auction
Should fix sporadic errors we are seeing with the integration
This commit is contained in:
parent
f35b2dc36c
commit
d590b5d937
2 changed files with 18 additions and 2 deletions
|
@ -52,7 +52,10 @@ module Api
|
|||
end
|
||||
|
||||
def update_whois_from_auction(auction)
|
||||
whois_record = Whois::Record.find_by!(name: auction.domain)
|
||||
whois_record = Whois::Record.find_or_create_by(name: auction.domain) do |record|
|
||||
record.body = {}
|
||||
end
|
||||
|
||||
whois_record.update_from_auction(auction)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue