mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-02-23 19:49:56 +01:00
web: use in memory db only for account recovery routes
This commit is contained in:
@@ -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 };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user