mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 02:51:14 +00:00
refactor: Migrate NodeConnectionType to const object type (no-changelog) (#14078)
Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
This commit is contained in:
@@ -44,7 +44,7 @@ import type {
|
||||
import {
|
||||
LoggerProxy as Logger,
|
||||
NodeHelpers,
|
||||
NodeConnectionType,
|
||||
NodeConnectionTypes,
|
||||
ApplicationError,
|
||||
sleep,
|
||||
ExecutionCancelledError,
|
||||
@@ -786,7 +786,7 @@ export class WorkflowExecute {
|
||||
// would mean that it has to get added to the list of nodes to process.
|
||||
const parentNodes = workflow.getParentNodes(
|
||||
inputData.node,
|
||||
NodeConnectionType.Main,
|
||||
NodeConnectionTypes.Main,
|
||||
-1,
|
||||
);
|
||||
let nodeToAdd: string | undefined = inputData.node;
|
||||
@@ -889,7 +889,7 @@ export class WorkflowExecute {
|
||||
'waitingExecution',
|
||||
connectionData.node,
|
||||
waitingNodeIndex!,
|
||||
NodeConnectionType.Main,
|
||||
NodeConnectionTypes.Main,
|
||||
],
|
||||
null,
|
||||
);
|
||||
@@ -2219,7 +2219,7 @@ export class WorkflowExecute {
|
||||
);
|
||||
const outputs = NodeHelpers.getNodeOutputs(workflow, executionData.node, nodeType.description);
|
||||
const outputTypes = NodeHelpers.getConnectionTypes(outputs);
|
||||
const mainOutputTypes = outputTypes.filter((output) => output === NodeConnectionType.Main);
|
||||
const mainOutputTypes = outputTypes.filter((output) => output === NodeConnectionTypes.Main);
|
||||
|
||||
const errorItems: INodeExecutionData[] = [];
|
||||
const closeFunctions: CloseFunction[] = [];
|
||||
@@ -2276,7 +2276,7 @@ export class WorkflowExecute {
|
||||
} else {
|
||||
const pairedItemInputIndex = pairedItemData.input || 0;
|
||||
|
||||
const sourceData = executionData.source[NodeConnectionType.Main][pairedItemInputIndex];
|
||||
const sourceData = executionData.source[NodeConnectionTypes.Main][pairedItemInputIndex];
|
||||
|
||||
const constPairedItem = dataProxy.$getPairedItem(
|
||||
sourceData!.previousNode,
|
||||
|
||||
Reference in New Issue
Block a user