mirror of
https://github.com/internetee/registry.git
synced 2025-07-23 19:20:37 +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
|
@ -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