🚸 Improve UX on create user page
This commit is contained in:
1 parent
e273c830b4
commit
ed23e388f9
6 files changed
+111
-24
No files matched your search
@@ -185,4 +185,18 @@ export const userRouter = createTRPCRouter({
|
||||
},
|
||||
});
|
||||
}),
|
||||
|
||||
deleteUser: publicProcedure
|
||||
.input(
|
||||
z.object({
|
||||
userId: z.string(),
|
||||
})
|
||||
)
|
||||
.mutation(async ({ ctx, input }) => {
|
||||
await ctx.prisma.user.delete({
|
||||
where: {
|
||||
id: input.userId,
|
||||
},
|
||||
});
|
||||
}),
|
||||
});
|
||||
Reference in new issue
Block a user