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>
This commit is contained in:
Rifa Achrinza 2022-08-22 15:48:22 +08:00
parent 12a502b097
commit 837240b7f9
1 changed files with 1 additions and 1 deletions

View File

@ -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;