Skip to content

A modern and easy to use dashboard. 80+ integrations. 20K+ icons built in. Authentication out of the box. No YAML, drag and drop configuration.

fix(cli): fix-usernames command only fixes lowercase usernames (#2650)

Meier Lukasb0381cb8836b
diff --git a/packages/cli/src/commands/fix-usernames.ts b/packages/cli/src/commands/fix-usernames.ts
index f2b3b774c..0f242c44d 100644
--- a/packages/cli/src/commands/fix-usernames.ts
+++ b/packages/cli/src/commands/fix-usernames.ts
@@ -19,7 +19,7 @@ export const fixUsernames = command({
for (const user of credentialUsers) {
if (!user.name) continue;
- if (user.name !== user.name.toLowerCase()) continue;
+ if (user.name === user.name.toLowerCase()) continue;
await db
.update(users)