From 738f951f184dba39f96e8ba510019af307a02b3a Mon Sep 17 00:00:00 2001 From: life Date: Sun, 15 Nov 2015 22:55:31 +0800 Subject: [PATCH] =?UTF-8?q?=E9=81=BF=E5=85=8D=E5=8E=86=E5=8F=B2=E5=8E=9F?= =?UTF-8?q?=E5=9B=A0,=20=E6=9C=89NoteId=E6=98=AF=E4=B8=80=E6=A0=B7?= =?UTF-8?q?=E7=9A=84,=20=E5=AF=BC=E8=87=B4=E6=AF=8F=E6=AC=A1=E9=83=BD?= =?UTF-8?q?=E4=BC=9Asend=20change?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- node_modules/note.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/node_modules/note.js b/node_modules/note.js index f98b47d9..92c2d30f 100644 --- a/node_modules/note.js +++ b/node_modules/note.js @@ -996,7 +996,8 @@ var Note = { delete note['UpdatedTime']; delete note['CreatedTime']; - db.notes.update({NoteId: note.NoteId}, {$set: note}, function(err, n) { + // multi: true, 避免有历史的笔记有问题 + db.notes.update({NoteId: note.NoteId}, {$set: note}, {multi: true}, function(err, n) { if(err || !n) { log('updateNoteForceForSendChange err'); log(err);