From 837240b7f911c95402229df059d753c1112fa001 Mon Sep 17 00:00:00 2001 From: Rifa Achrinza <25147899+achrinza@users.noreply.github.com> Date: Mon, 22 Aug 2022 15:48:22 +0800 Subject: [PATCH] fix: missing serialisation for `Connector.update` closes https://github.com/loopbackio/loopback-datasource-juggler/issues/1971 Signed-off-by: Rifa Achrinza <25147899+achrinza@users.noreply.github.com> --- lib/dao.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dao.js b/lib/dao.js index ef59eaea..275a0008 100644 --- a/lib/dao.js +++ b/lib/dao.js @@ -2356,7 +2356,7 @@ DataAccessObject.updateAll = function(where, data, options, cb) { Model.notifyObserversOf('persist', context, function(err, ctx) { if (err) return cb(err); data = ctx.data; - invokeConnectorMethod(connector, 'update', Model, [where, data], options, updateCallback); + invokeConnectorMethod(connector, 'update', Model, [where, Model._forDB(data)], options, updateCallback); }); } return cb.promise;