From 247e4d5c6f13441b44778ebbecdc395592d87077 Mon Sep 17 00:00:00 2001 From: Jan Oberhauser Date: Sun, 17 Nov 2019 14:43:54 +0100 Subject: [PATCH] :bug: Wait also for webhook call if webhook node gets executed directly --- packages/cli/src/WebhookHelpers.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/cli/src/WebhookHelpers.ts b/packages/cli/src/WebhookHelpers.ts index 238c05fc6c..8ff9802bed 100644 --- a/packages/cli/src/WebhookHelpers.ts +++ b/packages/cli/src/WebhookHelpers.ts @@ -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)) {