From 9cef647811afa3b9db4c9afe1f6156cfc09a0da1 Mon Sep 17 00:00:00 2001 From: azivner Date: Thu, 26 Oct 2017 20:54:10 -0400 Subject: [PATCH] fixed setting last_synced_pull --- services/sync.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/services/sync.js b/services/sync.js index edf901f23..2e4682b3f 100644 --- a/services/sync.js +++ b/services/sync.js @@ -49,7 +49,6 @@ async function pullSync() { json: true }); - console.log(noteId); await sql.insert("notes", note.detail, true); @@ -64,9 +63,11 @@ async function pullSync() { 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(); }