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: create user async is called twice
Meier Lukas7fa120c47490
diff --git a/packages/api/src/router/user.ts b/packages/api/src/router/user.tsindex f70ba6de4..4d44884fa 100644--- a/packages/api/src/router/user.ts+++ b/packages/api/src/router/user.ts@@ -54,7 +54,7 @@ export const userRouter = createTRPCRouter({await checkUsernameAlreadyTakenAndThrowAsync(ctx.db, input.username);await createUserAsync(ctx.db, input);- await createUserAsync(ctx.db, input);+// Delete invite as it's usedawait ctx.db.delete(invites).where(inviteWhere);}),@@ -64,7 +64,7 @@ export const userRouter = createTRPCRouter({await checkUsernameAlreadyTakenAndThrowAsync(ctx.db, input.username);await createUserAsync(ctx.db, input);- }),+ }),setProfileImage: protectedProcedure.input(z.object({