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
web: use in memory db only for account recovery routes
Abdullah Attaa2939aa183b1
diff --git a/apps/web/src/bootstrap.tsx b/apps/web/src/bootstrap.tsxindex cb2a758b2..f3df0ef93 100644--- a/apps/web/src/bootstrap.tsx+++ b/apps/web/src/bootstrap.tsx@@ -194,11 +194,9 @@ export async function init() {initializeLogger()]);- const persistence =- (path !== "/sessionexpired" && isAccountRecoveryRoute(path)) ||- Config.get("sessionExpired", false)- ? ("db" as const)- : ("memory" as const);+ const persistence = isAccountRecoveryRoute(path)+ ? ("memory" as const)+ : ("db" as const);return { Component, path, props: route.props, persistence };}