fix: show status after create workflow run

This commit is contained in:
BennyKok
2023-12-15 19:48:51 +08:00
parent 4ea9cb61dd
commit 942660d505
4 changed files with 68 additions and 3 deletions
+4 -1
View File
@@ -102,7 +102,10 @@ export async function createRun(
revalidatePath(`/${workflow_version_data.workflow_id}`);
return workflow_run[0].id;
return {
workflow_run_id: workflow_run[0].id,
message: "Successfully workflow run",
};
// return NextResponse.json(
// {