mirror of
https://github.com/internetee/registry.git
synced 2025-06-05 12:17:30 +02:00
remove active disputed domains from retruned method
This commit is contained in:
parent
1f0f52ee0f
commit
ed92974b7c
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue