From f5c77e40fdfae22d9918b4b6c512ac2fdf7c027d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Gonz=C3=A1lez?= Date: Wed, 12 Aug 2020 15:04:07 +0200 Subject: [PATCH] B #: fix onedb change-body (#149) --- src/onedb/onedb_live.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/onedb/onedb_live.rb b/src/onedb/onedb_live.rb index 5ee9f95e2d..e3ca2e1f1d 100644 --- a/src/onedb/onedb_live.rb +++ b/src/onedb/onedb_live.rb @@ -454,7 +454,7 @@ class OneDBLive break if found_id end - return if options[:id] && found_id + return if !options[:id] || found_id raise "Object with id #{options[:id]} not found" end