From 95e24cd00c36305d6d7a59d2083b2b09e38b31d2 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Thu, 21 Nov 2024 11:17:44 +0800 Subject: [PATCH] :zap: Improve data sync performance https://github.com/siyuan-note/siyuan/issues/13216 --- sync.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sync.go b/sync.go index 69502cc..e963745 100644 --- a/sync.go +++ b/sync.go @@ -486,7 +486,7 @@ func (repo *Repo) mergeSync(mergeResult *MergeResult, localChanged, needSyncClou } } - if localChanged && needSyncCloud { + if (localChanged && needSyncCloud) || "" == cloudLatest.ID { err = repo.updateCloudIndexes(latest, trafficStat, context) if nil != err { logging.LogErrorf("update cloud indexes failed: %s", err)