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: Update check for user existence
Thomas Camlong65025a5dda44
diff --git a/packages/api/src/router/user.ts b/packages/api/src/router/user.tsindex f548a7f15..58a26aaae 100644--- a/packages/api/src/router/user.ts+++ b/packages/api/src/router/user.ts@@ -35,8 +35,7 @@ export const userRouter = createTRPCRouter({const user = await ctx.db.query.users.findFirst({where: eq(users.name, input.username),});-- if (user !== null) {+ if (user !== undefined) {throw new TRPCError({code: "FORBIDDEN",message: "User already exists",