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}`, );