fix bulkUpdate
This commit is contained in:
parent
72d85fa9ea
commit
49e81f02eb
|
@ -1440,7 +1440,7 @@ module.exports = function(registry) {
|
||||||
switch (update.type) {
|
switch (update.type) {
|
||||||
case Change.UPDATE:
|
case Change.UPDATE:
|
||||||
tasks.push(function(cb) {
|
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;
|
break;
|
||||||
|
|
||||||
|
@ -1451,7 +1451,7 @@ module.exports = function(registry) {
|
||||||
break;
|
break;
|
||||||
case Change.DELETE:
|
case Change.DELETE:
|
||||||
tasks.push(function(cb) {
|
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;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue