refactor(core): Extract load-options context out of NodeExecutionFunctions (no-changelog) (#11461)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2024-11-04 12:35:07 +01:00
committed by GitHub
parent a092b8e972
commit da18e1ad29
6 changed files with 220 additions and 102 deletions

View File

@@ -1,4 +1,4 @@
import { NodeExecuteFunctions } from 'n8n-core';
import { LoadOptionsContext, NodeExecuteFunctions } from 'n8n-core';
import type {
ILoadOptions,
ILoadOptionsFunctions,
@@ -253,6 +253,6 @@ export class DynamicNodeParametersService {
workflow: Workflow,
) {
const node = workflow.nodes['Temp-Node'];
return NodeExecuteFunctions.getLoadOptionsFunctions(workflow, node, path, additionalData);
return new LoadOptionsContext(workflow, node, additionalData, path);
}
}