Store trigger output (#11503)

As title. Trigger output is the workflow payload
This commit is contained in:
Thomas Trompette
2025-04-10 14:36:15 +02:00
committed by GitHub
parent cc6043be9f
commit 5b1091b19e
2 changed files with 6 additions and 1 deletions

View File

@ -97,6 +97,11 @@ export class RunWorkflowJob {
trigger: workflowVersion.trigger, trigger: workflowVersion.trigger,
steps: workflowVersion.steps, steps: workflowVersion.steps,
}, },
stepsOutput: {
trigger: {
result: payload,
},
},
}, },
}); });

View File

@ -106,7 +106,7 @@ export class WorkflowRunWorkspaceService {
}: { }: {
workflowRunId: string; workflowRunId: string;
context: Record<string, any>; context: Record<string, any>;
output: Pick<WorkflowRunOutput, 'flow'>; output: WorkflowRunOutput;
}) { }) {
const workflowRunRepository = const workflowRunRepository =
await this.twentyORMManager.getRepository<WorkflowRunWorkspaceEntity>( await this.twentyORMManager.getRepository<WorkflowRunWorkspaceEntity>(