Skip to content

Commit

Permalink
fix(orchestrator): execute should allow no inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
batzionb committed Nov 21, 2024
1 parent a2abe1c commit 6d2d638
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/orchestrator-backend/src/service/api/v2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export class V2 {
workflowId: string,
businessKey: string | undefined,
): Promise<ExecuteWorkflowResponseDTO> {
if (Object.keys(executeWorkflowRequestDTO?.inputData).length === 0) {
if (!executeWorkflowRequestDTO?.inputData) {
throw new Error(
`ExecuteWorkflowRequestDTO.inputData is required for executing workflow with id ${workflowId}`,
);
Expand Down

0 comments on commit 6d2d638

Please sign in to comment.