added deadline registration condition during domain registration from auction

This commit is contained in:
Oleg Hasjanov 2024-01-24 14:33:49 +02:00
parent bbe667b9d2
commit b5b59026b9
4 changed files with 43 additions and 3 deletions

View file

@ -78,6 +78,10 @@ module DNS
!not_auctionable?
end
def is_deadline_is_reached?
pending_auction && pending_auction.payment_received? && pending_auction&.registration_deadline && Time.zone.now > pending_auction.registration_deadline
end
def to_s
name
end