server: fix update property

This commit is contained in:
King Kévin 2023-01-30 01:29:15 +01:00
parent 7dd5fe8384
commit 81fd333672
1 changed files with 1 additions and 1 deletions

View File

@ -351,7 +351,7 @@ def add_part(part)
ref = statement.execute(name.downcase).to_a[0]
insert = @db.prepare("INSERT INTO property_value (property,part,value) VALUES (?,?,?)");
values.each do |value|
next if family and family["properties"] and family["properties"][name].include?(value)
next if family and family["properties"] and family["properties"][name] and family["properties"][name].include?(value)
insert.execute(ref["id"], part["id"], value)
end
end