diff --git a/app/api/runs/route.ts b/app/api/runs/route.ts index 6320144..237a439 100644 --- a/app/api/runs/route.ts +++ b/app/api/runs/route.ts @@ -52,6 +52,12 @@ export async function POST(req: NextRequest) { { status: 400 }, ); } + if (body.results.length === 0) { + return NextResponse.json( + { error: "results[] must not be empty" }, + { status: 400 }, + ); + } if (body.results.length === 0) { return NextResponse.json(