From 8bc665507307da58026523e24410deaa278cf04d Mon Sep 17 00:00:00 2001 From: BennyKok Date: Thu, 18 Jan 2024 22:48:06 +0800 Subject: [PATCH] fix: inputs types --- web/src/db/schema.ts | 3 ++- web/src/server/createRun.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/web/src/db/schema.ts b/web/src/db/schema.ts index 0c9f42e..7ad3bd8 100644 --- a/web/src/db/schema.ts +++ b/web/src/db/schema.ts @@ -130,7 +130,8 @@ export const workflowRunsTable = dbSchema.table("workflow_runs", { onDelete: "set null", } ), - workflow_inputs: jsonb("workflow_inputs").$type>(), + workflow_inputs: + jsonb("workflow_inputs").$type>(), workflow_id: uuid("workflow_id") .notNull() .references(() => workflowTable.id, { diff --git a/web/src/server/createRun.ts b/web/src/server/createRun.ts index 19ae5ee..bb1a501 100644 --- a/web/src/server/createRun.ts +++ b/web/src/server/createRun.ts @@ -25,7 +25,7 @@ export const createRun = withServerPromise( origin: string; workflow_version_id: string | WorkflowVersionType; machine_id: string | MachineType; - inputs?: Record; + inputs?: Record; isManualRun?: boolean; apiUser?: APIKeyUserType; }) => {