diff --git a/app/api/runs/route.ts b/app/api/runs/route.ts index e838cee..e20e2d8 100644 --- a/app/api/runs/route.ts +++ b/app/api/runs/route.ts @@ -51,6 +51,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 }, + ); + } const supabase = db();