fix(problem): remove unnecessary parseInt conversion for problem id

This commit is contained in:
cfngc4594 2025-03-12 15:32:14 +08:00
parent 24d94f3802
commit 012e0f7d05
3 changed files with 3 additions and 3 deletions

View File

@ -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,

View File

@ -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,

View File

@ -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: {