fix: inputs types
This commit is contained in:
parent
814c93e481
commit
8bc6655073
@ -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, {
|
||||||
|
@ -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;
|
||||||
}) => {
|
}) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user