mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 19:05:59 +01:00
fix pulling changes
This commit is contained in:
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user