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 79fdd8b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .changeset/fair-kids-grin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
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 79fdd8b

Please sign in to comment.