Create whois records on releasing domain to auction

This commit is contained in:
Maciej Szlosarczyk 2019-04-03 15:14:10 +03:00
parent c85ebf542d
commit 4413a1bb27
No known key found for this signature in database
GPG key ID: 41D62D42D3B0D765
3 changed files with 20 additions and 3 deletions

View file

@ -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