A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
core: rebuild trash cache even if trash cleanup interval is set to never
Abdullah Atta44e62f0eb08c
diff --git a/packages/core/src/collections/trash.ts b/packages/core/src/collections/trash.tsindex 4478f1ea0..7f1b3eba8 100644--- a/packages/core/src/collections/trash.ts+++ b/packages/core/src/collections/trash.ts@@ -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")