Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
If the database hasn't been initialized (new install?) don't attempt to update our last synced id, as there is no db to grab it from (prevents running the server as a fresh install completely) (#1797)
bavis-m744ed27d9187
diff --git a/src/services/sync.js b/src/services/sync.jsindex 3a6c838b13..db11b37246 100644--- a/src/services/sync.js+++ b/src/services/sync.js@@ -391,8 +391,11 @@ sqlInit.dbReady.then(() => {setTimeout(cls.wrap(sync), 5000);});-// called just so ws.setLastSyncedPush() is called-getLastSyncedPush();+if (sqlInit.isDbInitialized())+{+ // called just so ws.setLastSyncedPush() is called+ getLastSyncedPush();+}module.exports = {sync,