fix bulkUpdate

This commit is contained in:
MarkovSergii 2018-07-19 09:50:58 +03:00 committed by GitHub
parent 72d85fa9ea
commit 49e81f02eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1440,7 +1440,7 @@ module.exports = function(registry) {
switch (update.type) {
case Change.UPDATE:
tasks.push(function(cb) {
applyUpdate(Model, id, current, update.data, update.change, conflicts, options, cb);
applyUpdate(Model, id, {_id:current.id || current._id}, update.data, update.change, conflicts, options, cb);
});
break;
@ -1451,7 +1451,7 @@ module.exports = function(registry) {
break;
case Change.DELETE:
tasks.push(function(cb) {
applyDelete(Model, id, current, update.change, conflicts, options, cb);
applyDelete(Model, id, {_id:current.id || current._id}, update.change, conflicts, options, cb);
});
break;
}