mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 23:19:40 +01:00
core: rebuild trash cache even if trash cleanup interval is set to never
This commit is contained in:
@@ -85,7 +85,10 @@ export default class Trash {
|
||||
|
||||
async cleanup() {
|
||||
const duration = this.db.settings.getTrashCleanupInterval();
|
||||
if (duration === -1 || !duration) return;
|
||||
if (duration === -1 || !duration) {
|
||||
await this.buildCache();
|
||||
return;
|
||||
}
|
||||
|
||||
const maxMs = dayjs()
|
||||
.startOf("day")
|
||||
|
||||
Reference in New Issue
Block a user