mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-14 00:24:07 -08:00
add comment
This commit is contained in:
parent
c49c4bb55a
commit
f456191c73
|
@ -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,
|
||||||
|
|
|
@ -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 = {};
|
||||||
|
|
Loading…
Reference in a new issue