fix: build issues

This commit is contained in:
BennyKok
2023-12-16 23:17:09 +08:00
parent 8f102d2ca4
commit 1dc04a8752
2 changed files with 3 additions and 7 deletions
+3 -1
View File
@@ -90,9 +90,11 @@ export async function POST(request: Request) {
inputs,
);
if ('error' in run_id) throw new Error(run_id.error);
return NextResponse.json(
{
run_id: run_id.workflow_run_id,
run_id: ('workflow_run_id' in run_id) ? run_id.workflow_run_id : '',
},
{
status: 200,