update Clerk V5
This commit is contained in:
@@ -14,17 +14,11 @@ export const userRouter = createTRPCRouter({
|
||||
})
|
||||
)
|
||||
.mutation(({ input, ctx }) => {
|
||||
return (
|
||||
clerkClient.users
|
||||
.updateUser(ctx.session.userId, {
|
||||
firstName: input.firstName,
|
||||
lastName: input.lastName,
|
||||
})
|
||||
// Typescript issue that is fine for now,
|
||||
// the properties we need are there
|
||||
// Will be resolved when we update clerk/nextjs to v5
|
||||
// @ts-expect-error
|
||||
.then(transformUser)
|
||||
);
|
||||
return clerkClient.users
|
||||
.updateUser(ctx.session.userId, {
|
||||
firstName: input.firstName,
|
||||
lastName: input.lastName,
|
||||
})
|
||||
.then(transformUser);
|
||||
}),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user