diff --git a/app/interactions/whois/update.rb b/app/interactions/whois/update.rb index 6bd2f4abc..6d3863bd5 100644 --- a/app/interactions/whois/update.rb +++ b/app/interactions/whois/update.rb @@ -27,13 +27,13 @@ module Whois when 'reserved' then ReservedDomain when 'blocked' then BlockedDomain when 'domain' then Domain - when 'disputed' then Dispute.active + when 'disputed' then Dispute else DNS::Zone end end def find_record(collection, name) - if collection == Dispute.active + if collection == Dispute collection.find_by(domain_name: name) else collection == DNS::Zone ? collection.find_by(origin: name) : collection.find_by(name: name)