mirror of
https://github.com/internetee/registry.git
synced 2025-06-10 14:44:47 +02:00
Merge pull request #1143 from internetee/create-whois-records-on-domain-release
Create whois records on domain release
This commit is contained in:
commit
19fbfbd2df
5 changed files with 26 additions and 9 deletions
|
@ -52,7 +52,7 @@ module Api
|
|||
end
|
||||
|
||||
def update_whois_from_auction(auction)
|
||||
whois_record = Whois::Record.find_or_create_by(name: auction.domain) do |record|
|
||||
whois_record = Whois::Record.find_or_create_by!(name: auction.domain) do |record|
|
||||
record.json = {}
|
||||
end
|
||||
|
||||
|
|
|
@ -92,7 +92,10 @@ module DNS
|
|||
end
|
||||
|
||||
def update_whois_from_auction(auction)
|
||||
whois_record = Whois::Record.find_by!(name: name)
|
||||
whois_record = Whois::Record.find_or_create_by!(name: name) do |record|
|
||||
record.json = {}
|
||||
end
|
||||
|
||||
whois_record.update_from_auction(auction)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -20,4 +20,4 @@ module Whois
|
|||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue