mirror of
https://github.com/TriliumNext/Notes.git
synced 2026-01-06 21:09:50 -06:00
fix pulling recent notes by note path (which contains '/' so needs to be escaped)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user