Skip to content

Build your personal knowledge base with Trilium Notes

fix pulling changes

azivner0c0e95b91e6d
diff --git a/services/build.js b/services/build.js
index b1869c4bec..57ec06e03d 100644
--- a/services/build.js
+++ b/services/build.js
@@ -1 +1 @@
-module.exports = { build_date:"2017-12-14T23:29:35-05:00", build_revision: "612c7d9144a943e180cf8d38a1cffe65a0b7525a" };
+module.exports = { build_date:"2017-12-16T09:02:14-05:00", build_revision: "4381d885243568fe5d4c60dce36bf0c2f98507fe" };
diff --git a/services/sync.js b/services/sync.js
index e8460af3a0..96dbb76e06 100644
--- a/services/sync.js
+++ b/services/sync.js
@@ -127,7 +127,7 @@ async function pullSync(syncContext) {
const resp = await syncRequest(syncContext, 'GET', "/api/sync/" + sync.entity_name + "/" + encodeURIComponent(sync.entity_id));
- if (!resp || !resp.entity) {
+ if (!resp || (sync.entity_name === 'notes' && !resp.entity)) {
log.error(`Empty response to pull for sync #${sync.id} ${sync.entity_name}, id=${sync.entity_id}`);
}
else if (sync.entity_name === 'notes') {