core: rebuild trash cache even if trash cleanup interval is set to never

This commit is contained in:
Abdullah Atta
2025-08-04 12:09:32 +05:00
parent a6e107f61d
commit 44e62f0eb0

View File

@@ -85,7 +85,10 @@ export default class Trash {
async cleanup() { async cleanup() {
const duration = this.db.settings.getTrashCleanupInterval(); const duration = this.db.settings.getTrashCleanupInterval();
if (duration === -1 || !duration) return; if (duration === -1 || !duration) {
await this.buildCache();
return;
}
const maxMs = dayjs() const maxMs = dayjs()
.startOf("day") .startOf("day")