mirror of
https://github.com/internetee/registry.git
synced 2025-08-15 22:13:54 +02:00
DisputeStatusUpdateJob: Return true if domain is sent to auction
This commit is contained in:
parent
7ef15a5bf1
commit
4463349454
1 changed files with 4 additions and 1 deletions
|
@ -65,7 +65,10 @@ class Dispute < ApplicationRecord
|
||||||
|
|
||||||
def forward_to_auction_if_possible
|
def forward_to_auction_if_possible
|
||||||
domain = DNS::DomainName.new(domain_name)
|
domain = DNS::DomainName.new(domain_name)
|
||||||
(domain.sell_at_auction && return) if domain.available? && domain.auctionable?
|
if domain.available? && domain.auctionable?
|
||||||
|
domain.sell_at_auction
|
||||||
|
return true
|
||||||
|
end
|
||||||
|
|
||||||
whois_record = Whois::Record.find_by(name: domain_name)
|
whois_record = Whois::Record.find_by(name: domain_name)
|
||||||
remove_whois_data(whois_record)
|
remove_whois_data(whois_record)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue