mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 11:01:15 +00:00
🐛 Fix bug with credentials in integrated workflows
This commit is contained in:
@@ -9,6 +9,7 @@ import {
|
|||||||
Push,
|
Push,
|
||||||
ResponseHelper,
|
ResponseHelper,
|
||||||
WebhookHelpers,
|
WebhookHelpers,
|
||||||
|
WorkflowCredentials,
|
||||||
WorkflowHelpers,
|
WorkflowHelpers,
|
||||||
} from './';
|
} from './';
|
||||||
|
|
||||||
@@ -306,6 +307,10 @@ export async function executeWorkflow(workflowInfo: IExecuteWorkflowInfo, additi
|
|||||||
const additionalDataIntegrated = await getBase(additionalData.credentials);
|
const additionalDataIntegrated = await getBase(additionalData.credentials);
|
||||||
additionalDataIntegrated.hooks = getWorkflowHooksIntegrated(mode, executionId, workflowData!, { parentProcessMode: additionalData.hooks!.mode });
|
additionalDataIntegrated.hooks = getWorkflowHooksIntegrated(mode, executionId, workflowData!, { parentProcessMode: additionalData.hooks!.mode });
|
||||||
|
|
||||||
|
// Get the needed credentials for the current workflow as they will differ to the ones of the
|
||||||
|
// calling workflow.
|
||||||
|
additionalDataIntegrated.credentials = await WorkflowCredentials(workflowData!.nodes);
|
||||||
|
|
||||||
// Find Start-Node
|
// Find Start-Node
|
||||||
const requiredNodeTypes = ['n8n-nodes-base.start'];
|
const requiredNodeTypes = ['n8n-nodes-base.start'];
|
||||||
let startNode: INode | undefined;
|
let startNode: INode | undefined;
|
||||||
|
|||||||
Reference in New Issue
Block a user