✨ Add middleware for onboarding page

This commit is contained in:
Meier Lukas committed 2023-08-05 12:26:50 +02:00
1 parent 2615f8e0ae
commit f18d2fdfbd
3 files changed
+53

No files matched your search

+4
View File
@@ -30,6 +30,10 @@ export const userRouter = createTRPCRouter({
isAdmin: true,
});
}),
count: publicProcedure.query(async ({ ctx }) => {
const count = await ctx.prisma.user.count();
return count;
}),
createFromInvite: publicProcedure
.input(
signUpFormSchema.and(