mirror of
https://github.com/internetee/registry.git
synced 2025-08-01 07:26:22 +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
|
||||
|
||||
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?
|
||||
update_whois_from_auction(Auction.pending(auction.domain))
|
||||
|
|
|
@ -84,8 +84,9 @@ class Auction < ApplicationRecord
|
|||
end
|
||||
|
||||
def restart
|
||||
new_auction = self.class.new(domain: domain)
|
||||
new_auction.platform = self.platform
|
||||
new_platform = platform.nil? ? :auto : platform
|
||||
|
||||
new_auction = self.class.new(domain: domain, platform: new_platform)
|
||||
new_auction.start
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue