diff --git a/src/app/(app)/problems/[id]/@problem/@description/page.tsx b/src/app/(app)/problems/[id]/@problem/@description/page.tsx index 0820205..63250f3 100644 --- a/src/app/(app)/problems/[id]/@problem/@description/page.tsx +++ b/src/app/(app)/problems/[id]/@problem/@description/page.tsx @@ -14,7 +14,7 @@ export default async function ProblemDescriptionPage({ const { id } = await params; const problem = await prisma.problem.findUnique({ - where: { id: parseInt(id) }, + where: { id }, select: { title: true, description: true, diff --git a/src/app/(app)/problems/[id]/@problem/@solution/page.tsx b/src/app/(app)/problems/[id]/@problem/@solution/page.tsx index d4aaa78..37114d8 100644 --- a/src/app/(app)/problems/[id]/@problem/@solution/page.tsx +++ b/src/app/(app)/problems/[id]/@problem/@solution/page.tsx @@ -14,7 +14,7 @@ export default async function ProblemSolutionPage({ const { id } = await params; const problem = await prisma.problem.findUnique({ - where: { id: parseInt(id) }, + where: { id }, select: { title: true, solution: true, diff --git a/src/app/(app)/problems/[id]/@workspace/@editor/page.tsx b/src/app/(app)/problems/[id]/@workspace/@editor/page.tsx index a685eb5..7a51cd8 100644 --- a/src/app/(app)/problems/[id]/@workspace/@editor/page.tsx +++ b/src/app/(app)/problems/[id]/@workspace/@editor/page.tsx @@ -13,7 +13,7 @@ export default async function WorkspaceEditorPage({ const { id } = await params; const problem = await prisma.problem.findUnique({ - where: { id: parseInt(id) }, + where: { id }, select: { templates: { select: {