From 83ba5388a3e12e57db224d8e852a9ef6bcabc9a0 Mon Sep 17 00:00:00 2001 From: life Date: Wed, 26 Aug 2015 22:20:34 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E5=8A=A8=E5=88=B0=E5=85=B6=E5=AE=83?= =?UTF-8?q?=E7=AC=94=E8=AE=B0=E6=9C=AC=E4=B9=8B=E5=90=8E=EF=BC=8CWeb=20?= =?UTF-8?q?=E7=AB=AF=E6=98=BE=E7=A4=BA=E8=BF=98=E6=98=AF=E5=9C=A8=E6=97=A7?= =?UTF-8?q?=E7=9A=84=E7=AC=94=E8=AE=B0=E6=9C=AC=E5=86=85=EF=BC=81=20#42?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/leanote/desktop-app/issues/42 --- src/node_modules/note.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node_modules/note.js b/src/node_modules/note.js index eb802844..acd4d564 100644 --- a/src/node_modules/note.js +++ b/src/node_modules/note.js @@ -360,7 +360,7 @@ var Note = { var to = !note.Star; var preNotebookId = note.NotebookId; note.NotebookId = notebookId; - Notes.update({_id: note._id}, {$set: {NotebookId: notebookId, IsTrash: false, LocalIsDelete: false, UpdatedTime: new Date()}}, function(err, n) { + Notes.update({_id: note._id}, {$set: {IsDirty: true, NotebookId: notebookId, IsTrash: false, LocalIsDelete: false, UpdatedTime: new Date()}}, function(err, n) { // 重新统计 Notebook.reCountNotebookNumberNotes(preNotebookId); Notebook.reCountNotebookNumberNotes(notebookId);