mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 19:32:15 +00:00
🐛 Fix credential issue with ExecuteWorkflow-Node
This commit is contained in:
@@ -316,14 +316,14 @@ export async function executeWorkflow(workflowInfo: IExecuteWorkflowInfo, additi
|
|||||||
// Does not get used so set it simply to empty string
|
// Does not get used so set it simply to empty string
|
||||||
const executionId = '';
|
const executionId = '';
|
||||||
|
|
||||||
// Create new additionalData to have different workflow loaded and to call
|
|
||||||
// different webooks
|
|
||||||
const additionalDataIntegrated = await getBase(additionalData.credentials);
|
|
||||||
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
|
// Get the needed credentials for the current workflow as they will differ to the ones of the
|
||||||
// calling workflow.
|
// calling workflow.
|
||||||
additionalDataIntegrated.credentials = await WorkflowCredentials(workflowData!.nodes);
|
const credentials = await WorkflowCredentials(workflowData!.nodes);
|
||||||
|
|
||||||
|
// Create new additionalData to have different workflow loaded and to call
|
||||||
|
// different webooks
|
||||||
|
const additionalDataIntegrated = await getBase(credentials);
|
||||||
|
additionalDataIntegrated.hooks = getWorkflowHooksIntegrated(mode, executionId, workflowData!, { parentProcessMode: additionalData.hooks!.mode });
|
||||||
|
|
||||||
// Find Start-Node
|
// Find Start-Node
|
||||||
const requiredNodeTypes = ['n8n-nodes-base.start'];
|
const requiredNodeTypes = ['n8n-nodes-base.start'];
|
||||||
|
|||||||
Reference in New Issue
Block a user