Skip to content

Commit eac103e

Browse files
authored
fix(core): Add executionData to expressions in pagination code (n8n-io#10926)
1 parent 5c171c4 commit eac103e

File tree

2 files changed

+1911
-1964
lines changed

2 files changed

+1911
-1964
lines changed

packages/core/src/NodeExecuteFunctions.ts

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2995,6 +2995,8 @@ const getRequestHelperFunctions = (
29952995
workflow: Workflow,
29962996
node: INode,
29972997
additionalData: IWorkflowExecuteAdditionalData,
2998+
runExecutionData: IRunExecutionData | null = null,
2999+
connectionInputData: INodeExecutionData[] = [],
29983000
): RequestHelperFunctions => {
29993001
const getResolvedValue = (
30003002
parameterValue: NodeParameterValueType,
@@ -3004,8 +3006,6 @@ const getRequestHelperFunctions = (
30043006
additionalKeys?: IWorkflowDataProxyAdditionalKeys,
30053007
returnObjectAsString = false,
30063008
): NodeParameterValueType => {
3007-
const runExecutionData: IRunExecutionData | null = null;
3008-
const connectionInputData: INodeExecutionData[] = [];
30093009
const mode: WorkflowExecuteMode = 'internal';
30103010

30113011
if (
@@ -3874,7 +3874,13 @@ export function getExecuteFunctions(
38743874
helpers: {
38753875
createDeferredPromise,
38763876
copyInputItems,
3877-
...getRequestHelperFunctions(workflow, node, additionalData),
3877+
...getRequestHelperFunctions(
3878+
workflow,
3879+
node,
3880+
additionalData,
3881+
runExecutionData,
3882+
connectionInputData,
3883+
),
38783884
...getSSHTunnelFunctions(),
38793885
...getFileSystemHelperFunctions(node),
38803886
...getBinaryHelperFunctions(additionalData, workflow.id),
@@ -4031,7 +4037,13 @@ export function getExecuteSingleFunctions(
40314037
},
40324038
helpers: {
40334039
createDeferredPromise,
4034-
...getRequestHelperFunctions(workflow, node, additionalData),
4040+
...getRequestHelperFunctions(
4041+
workflow,
4042+
node,
4043+
additionalData,
4044+
runExecutionData,
4045+
connectionInputData,
4046+
),
40354047
...getBinaryHelperFunctions(additionalData, workflow.id),
40364048

40374049
assertBinaryData: (propertyName, inputIndex = 0) =>

0 commit comments

Comments
 (0)