🐛 After changing the History Retention Days, the file history cannot be displayed https://github.com/siyuan-note/siyuan/issues/11935

This commit is contained in:
Daniel
2024-07-10 12:02:52 +08:00
parent 7a1bc8b636
commit bbf2ce4ba0
3 changed files with 6 additions and 6 deletions

View File

@@ -41,7 +41,7 @@ type historyDBQueueOperation struct {
action string // index/deleteOutdated
histories []*History // index
before string // deleteOutdated
before int64 // deleteOutdated
}
func FlushHistoryTxJob() {
@@ -121,7 +121,7 @@ func execHistoryOp(op *historyDBQueueOperation, tx *sql.Tx, context map[string]i
return
}
func DeleteOutdatedHistories(before string) {
func DeleteOutdatedHistories(before int64) {
historyDBQueueLock.Lock()
defer historyDBQueueLock.Unlock()