push code len ne

This commit is contained in:
2024-10-28 20:56:21 +07:00
parent 5c1d4e92af
commit ae1aa64b41
7 changed files with 267 additions and 23 deletions

View File

@@ -267,7 +267,8 @@ export class CenterMentorSchema extends PothosSchema {
notedByUserId: ctx.me.id,
},
});
const updatedUser = await prisma.user.update({
// update user role
await prisma.user.update({
where: args.where,
data: {
role: 'CENTER_MENTOR',