fix bulkUpdate
This commit is contained in:
parent
72d85fa9ea
commit
49e81f02eb
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue