feat: add update failed display when the graph execution error
This commit is contained in:
@@ -60,6 +60,8 @@ export async function createRun(
|
||||
}
|
||||
}
|
||||
|
||||
console.log(workflow_api);
|
||||
|
||||
// Sending to comfyui
|
||||
const result = await fetch(comfyui_endpoint, {
|
||||
method: "POST",
|
||||
|
||||
@@ -1,9 +1,14 @@
|
||||
"use server";
|
||||
|
||||
import { RunOutputs } from "@/components/RunOutputs";
|
||||
import { db } from "@/db/db";
|
||||
import { workflowRunOutputs, workflowRunsTable } from "@/db/schema";
|
||||
import { eq } from "drizzle-orm";
|
||||
|
||||
export async function getRunsOutputDisplay(run_id: string) {
|
||||
return <RunOutputs run_id={run_id} />;
|
||||
}
|
||||
|
||||
export async function getRunsOutput(run_id: string) {
|
||||
// throw new Error("Not implemented");
|
||||
return await db
|
||||
|
||||
Reference in New Issue
Block a user