mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
fix(core): Fix manual execution of pinned trigger on main mode (#4535)
🐛 Fix manual execution of pinned trigger on main mode
This commit is contained in:
@@ -318,11 +318,19 @@ export class WorkflowRunner {
|
|||||||
Logger.debug(`Execution ID ${executionId} will run executing all nodes.`, { executionId });
|
Logger.debug(`Execution ID ${executionId} will run executing all nodes.`, { executionId });
|
||||||
// Execute all nodes
|
// Execute all nodes
|
||||||
|
|
||||||
|
let startNode;
|
||||||
|
if (
|
||||||
|
data.startNodes?.length === 1 &&
|
||||||
|
Object.keys(data.pinData ?? {}).includes(data.startNodes[0])
|
||||||
|
) {
|
||||||
|
startNode = workflow.getNode(data.startNodes[0]) ?? undefined;
|
||||||
|
}
|
||||||
|
|
||||||
// Can execute without webhook so go on
|
// Can execute without webhook so go on
|
||||||
const workflowExecute = new WorkflowExecute(additionalData, data.executionMode);
|
const workflowExecute = new WorkflowExecute(additionalData, data.executionMode);
|
||||||
workflowExecution = workflowExecute.run(
|
workflowExecution = workflowExecute.run(
|
||||||
workflow,
|
workflow,
|
||||||
undefined,
|
startNode,
|
||||||
data.destinationNode,
|
data.destinationNode,
|
||||||
data.pinData,
|
data.pinData,
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user