mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 09:58:32 +02:00
fix pulling recent notes by note path (which contains '/' so needs to be escaped)
This commit is contained in:
parent
79a803ccc9
commit
5cec7a497b
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user