add comment

This commit is contained in:
Mutasem Aldmour 2024-11-06 17:55:32 +01:00
parent c49c4bb55a
commit f456191c73
2 changed files with 3 additions and 0 deletions

View file

@ -813,12 +813,14 @@ export async function executeWorkflow(
); );
if (options.doNotWaitToFinish) { if (options.doNotWaitToFinish) {
// todo check if not breaking change
return { executionId, data: [null] }; return { executionId, data: [null] };
} }
return await executionPromise; return await executionPromise;
} }
// todo simplify
async function startExecution( async function startExecution(
additionalData: IWorkflowExecuteAdditionalData, additionalData: IWorkflowExecuteAdditionalData,
options: ExecuteWorkflowOptions, options: ExecuteWorkflowOptions,

View file

@ -37,6 +37,7 @@ import { BinaryHelpers } from './helpers/binary-helpers';
import { RequestHelpers } from './helpers/request-helpers'; import { RequestHelpers } from './helpers/request-helpers';
import { NodeExecutionContext } from './node-execution-context'; import { NodeExecutionContext } from './node-execution-context';
// todo simplify
function setMetadata(executeData: IExecuteData, key: string, value: string) { function setMetadata(executeData: IExecuteData, key: string, value: string) {
if (!executeData.metadata) { if (!executeData.metadata) {
executeData.metadata = {}; executeData.metadata = {};