fix: remove logging from prisma client and fix users API routes

This commit is contained in:
2026-03-31 01:15:57 -07:00
parent 492a18aa1b
commit e0d159ad8d
4 changed files with 56 additions and 12 deletions
+1 -1
View File
@@ -73,7 +73,7 @@ export async function PATCH(
// Update the user's role
const updatedUser = await prisma.user.update({
where: { id: params.id },
where: { id },
data: { role }
});
+2 -2
View File
@@ -84,7 +84,7 @@ export async function PATCH(
// Check if user exists
const user = await prisma.user.findUnique({
where: { id: params.id },
where: { id },
include: { player: true }
});
@@ -106,7 +106,7 @@ export async function PATCH(
}
const updatedUser = await prisma.user.update({
where: { id: params.id },
where: { id },
data: updateData,
include: { player: true }
});