diff --git a/app/api/evaluation/route.ts b/app/api/evaluation/route.ts index b122aca1..918b1566 100644 --- a/app/api/evaluation/route.ts +++ b/app/api/evaluation/route.ts @@ -330,7 +330,7 @@ export async function PUT(req: NextRequest) { testId }, }); - console.log(evaluation); + if (!evaluation) { return NextResponse.json( { diff --git a/app/api/metrics/accuracy/route.ts b/app/api/metrics/accuracy/route.ts index 1740ad64..257f4e02 100644 --- a/app/api/metrics/accuracy/route.ts +++ b/app/api/metrics/accuracy/route.ts @@ -72,7 +72,7 @@ export async function GET(req: NextRequest) { lastNDays ); - // get evalutaion for the last 7 days + // get evalutaion for the lastNDays // and all evaluations where score is 1 or -1 evaluations = await prisma.evaluation.findMany({ where: {