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
fix pulling recent notes by note path (which contains '/' so needs to be escaped)
azivner5cec7a497be5
diff --git a/services/sync.js b/services/sync.jsindex d8b62a407e..9e6533b4d4 100644--- a/services/sync.js+++ b/services/sync.js@@ -123,7 +123,7 @@ async function pullSync(syncContext) {console.log("Pulling ", sync);- const resp = await syncRequest(syncContext, 'GET', "/api/sync/" + sync.entity_name + "/" + sync.entity_id);+ const resp = await syncRequest(syncContext, 'GET', "/api/sync/" + sync.entity_name + "/" + encodeURIComponent(sync.entity_id));if (sync.entity_name === 'notes') {await syncUpdate.updateNote(resp.entity, resp.links, syncContext.sourceId);