mirror of
https://github.com/internetee/registry.git
synced 2025-07-23 19:20:37 +02:00
Return array instead of string
This commit is contained in:
parent
1f70df9348
commit
d646edf85c
2 changed files with 5 additions and 5 deletions
|
@ -13,11 +13,11 @@ module Whois
|
|||
find_by(name: domain_name.to_s).try(:destroy!)
|
||||
|
||||
create!(name: domain_name, json: { name: domain_name.to_s,
|
||||
status: 'AtAuction',
|
||||
status: ['AtAuction'],
|
||||
disclaimer: disclaimer })
|
||||
elsif domain_name.awaiting_payment? || domain_name.pending_registration?
|
||||
find_by(name: domain_name.to_s).update!(json: { name: domain_name.to_s,
|
||||
status: 'PendingRegistration',
|
||||
status: ['PendingRegistration'],
|
||||
disclaimer: disclaimer })
|
||||
else
|
||||
find_by(name: domain_name.to_s).destroy!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue