We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78a3bf5 commit 348b7d3Copy full SHA for 348b7d3
src/app/core/onboarding.rs
@@ -15,7 +15,7 @@ impl LiwanOnboarding {
15
tracing::debug!("Checking if an onboarding token needs to be generated");
16
let conn = pool.get()?;
17
let onboarded = conn.prepare("select 1 from users limit 1")?.exists([])?;
18
- ArcSwapOption::new(onboarded.then(|| onboarding_token().into()))
+ ArcSwapOption::new((!onboarded).then(|| onboarding_token().into()))
19
};
20
21
Ok(Self { token: onboarding.into() })
0 commit comments