1
1
mirror of https://github.com/n8n-io/n8n.git synced 2024-10-07 01:58:50 +03:00

🐛 Wait also for webhook call if webhook node gets executed directly

This commit is contained in:
Jan Oberhauser 2019-11-17 14:43:54 +01:00
parent edf216ba24
commit 247e4d5c6f

View File

@ -76,6 +76,8 @@ export function getWorkflowWebhooks(workflow: Workflow, additionalData: IWorkflo
let parentNodes: string[] | undefined;
if (destinationNode !== undefined) {
parentNodes = workflow.getParentNodes(destinationNode);
// Also add the destination node in case it itself is a webhook node
parentNodes.push(destinationNode);
}
for (const node of Object.values(workflow.nodes)) {