未验证 提交 ded136af 编写于 作者: R rsercano

resolves #508

上级 9e41cbfb
...@@ -192,7 +192,7 @@ Meteor.methods({ ...@@ -192,7 +192,7 @@ Meteor.methods({
saveFindResult({ selectedCollection, updateObjects, deletedObjectIds, addedObjects, sessionId }) { saveFindResult({ selectedCollection, updateObjects, deletedObjectIds, addedObjects, sessionId }) {
for (let i = 0; i < updateObjects.length; i += 1) { for (let i = 0; i < updateObjects.length; i += 1) {
const result = MongoDB.execute({ selectedCollection, methodArray: [{ updateOne: [{ _id: updateObjects[i]._id }, { $set: updateObjects[i] }, {}] }], sessionId }); const result = MongoDB.execute({ selectedCollection, methodArray: [{ replaceOne: [{ _id: updateObjects[i]._id }, updateObjects[i], {}] }], sessionId });
if (result.error) return result; if (result.error) return result;
} }
if (deletedObjectIds.length > 0) { if (deletedObjectIds.length > 0) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册