diff --git a/app/api/runs/route.ts b/app/api/runs/route.ts index f5e6023..659bd84 100644 --- a/app/api/runs/route.ts +++ b/app/api/runs/route.ts @@ -70,6 +70,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(