fix: inputs types

This commit is contained in:
BennyKok 2024-01-18 22:48:06 +08:00
parent 814c93e481
commit 8bc6655073
2 changed files with 3 additions and 2 deletions

View File

@ -130,7 +130,8 @@ export const workflowRunsTable = dbSchema.table("workflow_runs", {
onDelete: "set null", onDelete: "set null",
} }
), ),
workflow_inputs: jsonb("workflow_inputs").$type<Record<string, string>>(), workflow_inputs:
jsonb("workflow_inputs").$type<Record<string, string | number>>(),
workflow_id: uuid("workflow_id") workflow_id: uuid("workflow_id")
.notNull() .notNull()
.references(() => workflowTable.id, { .references(() => workflowTable.id, {

View File

@ -25,7 +25,7 @@ export const createRun = withServerPromise(
origin: string; origin: string;
workflow_version_id: string | WorkflowVersionType; workflow_version_id: string | WorkflowVersionType;
machine_id: string | MachineType; machine_id: string | MachineType;
inputs?: Record<string, string>; inputs?: Record<string, string | number>;
isManualRun?: boolean; isManualRun?: boolean;
apiUser?: APIKeyUserType; apiUser?: APIKeyUserType;
}) => { }) => {