mirror of
https://github.com/internetee/registry.git
synced 2025-08-11 12:09:34 +02:00
fixed indicate new round platform issue
This commit is contained in:
parent
5f488119d0
commit
35408343e3
2 changed files with 4 additions and 2 deletions
|
@ -31,6 +31,7 @@ module Api
|
||||||
end
|
end
|
||||||
|
|
||||||
auction.mark_deadline(params[:registration_deadline]) if params[:registration_deadline]
|
auction.mark_deadline(params[:registration_deadline]) if params[:registration_deadline]
|
||||||
|
auction.platform = params[:platform] == 'english' ? :manual : :auto
|
||||||
|
|
||||||
if auction.payment_not_received? || auction.domain_not_registered?
|
if auction.payment_not_received? || auction.domain_not_registered?
|
||||||
update_whois_from_auction(Auction.pending(auction.domain))
|
update_whois_from_auction(Auction.pending(auction.domain))
|
||||||
|
|
|
@ -84,8 +84,9 @@ class Auction < ApplicationRecord
|
||||||
end
|
end
|
||||||
|
|
||||||
def restart
|
def restart
|
||||||
new_auction = self.class.new(domain: domain)
|
new_platform = platform.nil? ? :auto : platform
|
||||||
new_auction.platform = self.platform
|
|
||||||
|
new_auction = self.class.new(domain: domain, platform: new_platform)
|
||||||
new_auction.start
|
new_auction.start
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue