mirror of
https://github.com/internetee/registry.git
synced 2025-05-28 07:02:04 +02:00
Story#108521790 - nameserver Version's ipv4 should be read from object
This commit is contained in:
parent
40d4ed4408
commit
9081dc6dbd
1 changed files with 1 additions and 1 deletions
|
@ -108,7 +108,7 @@ module Legacy
|
|||
object_changes: server.each_with_object({}){|(k,v), h| h[k] = [nil, v]},
|
||||
created_at: time
|
||||
)
|
||||
if !version.ipv4.sort.eql?(main_attrs[:ipv4]) || !version.ipv6.sort.eql?(main_attrs[:ipv6])
|
||||
if !version.object["ipv4"].sort.eql?(main_attrs[:ipv4]) || !version.object["ipv6"].sort.eql?(main_attrs[:ipv6])
|
||||
object_changes = {}
|
||||
server.stringify_keys.each{|k, v| object_changes[k] = [v, version.object[k]] if v != version.object[k] }
|
||||
version.item.versions.where(event: :update).create!(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue