fixed setting last_synced_pull

This commit is contained in:
azivner 2017-10-26 20:54:10 -04:00
parent 266727a21b
commit 9cef647811

View File

@ -49,7 +49,6 @@ async function pullSync() {
json: true json: true
}); });
console.log(noteId);
await sql.insert("notes", note.detail, true); await sql.insert("notes", note.detail, true);
@ -64,9 +63,11 @@ async function pullSync() {
await sql.insert("notes_history", history); await sql.insert("notes_history", history);
} }
log.info("Syncing note" + noteId);
} }
await sql.setOption('last_synced_pull', syncTimestamp); await sql.setOption('last_synced_pull', resp.syncTimestamp);
await sql.commit(); await sql.commit();
} }