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
during sync login we check that sync server source ID isn't local (can happen after document fork if server is not restarted)
azivnerd9e3a40ee454
diff --git a/services/sync.js b/services/sync.jsindex 505451ebe3..08eb1026ad 100644--- a/services/sync.js+++ b/services/sync.js@@ -92,6 +92,10 @@ async function login() {hash: hash});+ if (source_id.isLocalSourceId(resp.sourceId)) {+ throw new Error(`Sync server has source ID ${resp.sourceId} which is also local. Try restarting sync server.`);+ }+syncContext.sourceId = resp.sourceId;return syncContext;