fix pulling recent notes by note path (which contains '/' so needs to be escaped)

This commit is contained in:
azivner 2017-11-21 22:18:37 -05:00
parent 79a803ccc9
commit 5cec7a497b

View File

@ -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);