Store trigger output (#11503)
As title. Trigger output is the workflow payload
This commit is contained in:
@ -97,6 +97,11 @@ export class RunWorkflowJob {
|
|||||||
trigger: workflowVersion.trigger,
|
trigger: workflowVersion.trigger,
|
||||||
steps: workflowVersion.steps,
|
steps: workflowVersion.steps,
|
||||||
},
|
},
|
||||||
|
stepsOutput: {
|
||||||
|
trigger: {
|
||||||
|
result: payload,
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@ -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>(
|
||||||
|
|||||||
Reference in New Issue
Block a user