mirror of
https://github.com/internetee/registry.git
synced 2025-07-23 03:06:14 +02:00
fixed name error
This commit is contained in:
parent
ff509532e6
commit
f1a4c79069
3 changed files with 7 additions and 7 deletions
|
@ -13,7 +13,7 @@ module Whois
|
|||
Array(names).each do |name|
|
||||
record = find_record(collection, name)
|
||||
if record
|
||||
Whois::UpdateRecord.run(record: { klass: collection.to_s, id: record.id, type: type })
|
||||
Whois::UpdateRecord.run(record: { klass: record.class.to_s, id: record.id, type: type })
|
||||
else
|
||||
Whois::DeleteRecord.run(name: name, type: type)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue