This commit is contained in:
@@ -63,7 +63,7 @@ export default function (fastify: FastifyInstance) {
|
||||
const input = schema.parse(req.body)
|
||||
|
||||
const updatedUser = prisma.user.update({
|
||||
where: { userId: req.user.id },
|
||||
where: { id: req.user.id },
|
||||
data: {
|
||||
displayName: input.displayName,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user