Cannot sync InitSync note to server

This commit is contained in:
life
2016-07-02 17:13:12 +08:00
parent 7e9351c1f4
commit 06e69d1ad9
2 changed files with 22 additions and 5 deletions

6
node_modules/sync.js generated vendored
View File

@@ -906,6 +906,12 @@ var Sync = {
// 调api, 所有执行后再callback();
// 一个一个同步执行, 因为要有
async.eachSeries(notes, function(note, cb) {
if (note.InitSync) {
console.error('InitSync is Dirty');
return cb();
}
if(note.LocalIsNew) {
// 是新的, 且不是trash和删除的
if(!note.IsTrash && !note.LocalIsDelete) {