mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
🐛 Automatic cleanup of the local data repo may accidentally delete snapshots https://github.com/siyuan-note/siyuan/issues/13203
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user