🐛 Automatic cleanup of the local data repo may accidentally delete snapshots https://github.com/siyuan-note/siyuan/issues/13203

This commit is contained in:
Daniel
2024-11-19 22:47:59 +08:00
parent cc033c115d
commit 84aea8cd2f

View File

@@ -153,7 +153,7 @@ func autoPurgeRepo(cron bool) {
}
retentionIndexIDs = gulu.Str.RemoveDuplicatedElem(retentionIndexIDs)
if 1 > len(retentionIndexIDs) {
if 16 > len(retentionIndexIDs) {
logging.LogInfof("no index to purge [ellapsed=%.2fs]", time.Since(now).Seconds())
return
}