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