mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
we need to call it with load options too
This commit is contained in:
parent
7f436a91fb
commit
0c20b2c46d
|
@ -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') {
|
||||
|
|
Loading…
Reference in a new issue