From 2bd2e504b64ff171a7f5b7a77d78568a84b1eca3 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Fri, 6 Dec 2024 17:38:14 +0800 Subject: [PATCH] :bug: Full manual sync mode causes data conflicts https://github.com/siyuan-note/siyuan/issues/13387 --- sync_manual.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sync_manual.go b/sync_manual.go index af79899..3dede07 100644 --- a/sync_manual.go +++ b/sync_manual.go @@ -277,6 +277,13 @@ func (repo *Repo) SyncUpload(context map[string]interface{}) (trafficStat *Traff return } + // 更新本地同步点 + err = repo.UpdateLatestSync(latest) + if nil != err { + logging.LogErrorf("update latest sync failed: %s", err) + return + } + // 统计流量 go repo.cloud.AddTraffic(&cloud.Traffic{ UploadBytes: trafficStat.UploadBytes,