Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

web: disable automatic orphaned attachment removal

Abdullah Atta153eb126fccb
diff --git a/apps/web/src/app-effects.tsx b/apps/web/src/app-effects.tsx
index 8638196a3..7373fed9d 100644
--- a/apps/web/src/app-effects.tsx
+++ b/apps/web/src/app-effects.tsx
@@ -70,7 +70,6 @@ export default function AppEffects() {
await scheduleFullBackups();
await scheduleExpiredNotesDeletion();
- db.attachments.removeOrphaned().catch(logger.error);
if (useSettingStore.getState().isFullOfflineMode)
// NOTE: we deliberately don't await here because we don't want to pause execution.
db.attachments.cacheAttachments().catch(logger.error);