From 5cec7a497be5aa2ea4174e04bef89de9daec5fa7 Mon Sep 17 00:00:00 2001 From: azivner Date: Tue, 21 Nov 2017 22:18:37 -0500 Subject: [PATCH] fix pulling recent notes by note path (which contains '/' so needs to be escaped) --- services/sync.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/sync.js b/services/sync.js index d8b62a407..9e6533b4d 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);