mirror of
https://github.com/internetee/registry.git
synced 2025-08-05 17:28:18 +02:00
Fix WHOIS update for a domain being sent to an auction
This commit is contained in:
parent
85ba5c066a
commit
98c415f672
3 changed files with 18 additions and 3 deletions
|
@ -35,8 +35,10 @@ module Concerns
|
|||
|
||||
def release
|
||||
if release_to_auction
|
||||
domain_name.sell_at_auction
|
||||
destroy!
|
||||
transaction do
|
||||
domain_name.sell_at_auction
|
||||
destroy!
|
||||
end
|
||||
else
|
||||
discard
|
||||
end
|
||||
|
|
|
@ -93,7 +93,7 @@ class Domain < ActiveRecord::Base
|
|||
true
|
||||
end
|
||||
|
||||
after_commit :update_whois_record
|
||||
after_commit :update_whois_record, unless: 'domain_name.at_auction?'
|
||||
|
||||
after_create :update_reserved_domains
|
||||
def update_reserved_domains
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue