From 0c20b2c46da0593b7256cc187229265b3212cb1c Mon Sep 17 00:00:00 2001 From: Ivan Atanasov Date: Wed, 27 Nov 2024 14:27:34 +0100 Subject: [PATCH] we need to call it with load options too --- .../nodes-base/nodes/ExecuteWorkflow/GenericFunctions.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/nodes-base/nodes/ExecuteWorkflow/GenericFunctions.ts b/packages/nodes-base/nodes/ExecuteWorkflow/GenericFunctions.ts index 7588040bf8..450a268dfa 100644 --- a/packages/nodes-base/nodes/ExecuteWorkflow/GenericFunctions.ts +++ b/packages/nodes-base/nodes/ExecuteWorkflow/GenericFunctions.ts @@ -3,11 +3,16 @@ import { NodeOperationError, jsonParse } from 'n8n-workflow'; import type { IExecuteFunctions, IExecuteWorkflowInfo, + ILoadOptionsFunctions, INodeParameterResourceLocator, IRequestOptions, } from 'n8n-workflow'; -export async function getWorkflowInfo(this: IExecuteFunctions, source: string, itemIndex = 0) { +export async function getWorkflowInfo( + this: ILoadOptionsFunctions | IExecuteFunctions, + source: string, + itemIndex = 0, +) { const workflowInfo: IExecuteWorkflowInfo = {}; const nodeVersion = this.getNode().typeVersion; if (source === 'database') {