Skip to content

Build your personal knowledge base with Trilium Notes

fixed setting last_synced_pull

azivner9cef647811af
diff --git a/services/sync.js b/services/sync.js
index edf901f237..2e4682b3f6 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();
}