mirror of
https://github.com/leanote/desktop-app.git
synced 2025-10-15 07:31:33 +00:00
移动到其它笔记本之后,Web 端显示还是在旧的笔记本内! #42
https://github.com/leanote/desktop-app/issues/42
This commit is contained in:
2
src/node_modules/note.js
generated
vendored
2
src/node_modules/note.js
generated
vendored
@@ -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);
|
||||
|
Reference in New Issue
Block a user