From 79fdd8b666a94d73ecd71ccb4153d1ebfadf7bec Mon Sep 17 00:00:00 2001 From: Bat-Zion Rotman Date: Thu, 21 Nov 2024 14:55:46 +0200 Subject: [PATCH] fix(orchestrator): execute should allow no inputs --- .changeset/fair-kids-grin.md | 2 ++ plugins/orchestrator-backend/src/service/api/v2.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 .changeset/fair-kids-grin.md diff --git a/.changeset/fair-kids-grin.md b/.changeset/fair-kids-grin.md new file mode 100644 index 0000000000..a845151cc8 --- /dev/null +++ b/.changeset/fair-kids-grin.md @@ -0,0 +1,2 @@ +--- +--- diff --git a/plugins/orchestrator-backend/src/service/api/v2.ts b/plugins/orchestrator-backend/src/service/api/v2.ts index 32bf50b3db..92ead1ff3e 100644 --- a/plugins/orchestrator-backend/src/service/api/v2.ts +++ b/plugins/orchestrator-backend/src/service/api/v2.ts @@ -148,7 +148,7 @@ export class V2 { workflowId: string, businessKey: string | undefined, ): Promise { - if (Object.keys(executeWorkflowRequestDTO?.inputData).length === 0) { + if (!executeWorkflowRequestDTO?.inputData) { throw new Error( `ExecuteWorkflowRequestDTO.inputData is required for executing workflow with id ${workflowId}`, );