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:
parent
12a502b097
commit
837240b7f9
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue