From 6d2d6384d52d87c983bf8318469315ad9046a8c8 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 --- plugins/orchestrator-backend/src/service/api/v2.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/orchestrator-backend/src/service/api/v2.ts b/plugins/orchestrator-backend/src/service/api/v2.ts index 32bf50b3db3..92ead1ff3ee 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}`, );