mirror of
https://github.com/lukevella/rallly.git
synced 2025-06-29 07:47:20 +02:00
⬆️ v3.0.0 (#704)
This commit is contained in:
parent
735056f25f
commit
c22b3abc4d
385 changed files with 19912 additions and 5250 deletions
|
@ -31,14 +31,13 @@ export const user = router({
|
|||
changeName: publicProcedure
|
||||
.input(
|
||||
z.object({
|
||||
userId: z.string(),
|
||||
name: z.string().min(1).max(100),
|
||||
}),
|
||||
)
|
||||
.mutation(async ({ input }) => {
|
||||
.mutation(async ({ input, ctx }) => {
|
||||
await prisma.user.update({
|
||||
where: {
|
||||
id: input.userId,
|
||||
id: ctx.user.id,
|
||||
},
|
||||
data: {
|
||||
name: input.name,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue