refactor: Setup node context API, and consolidate code between Webhook and Wait nodes (no-changelog) (#6464)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2023-07-04 16:17:50 +02:00
committed by GitHub
parent 29882a6f39
commit 4c854f4f23
8 changed files with 679 additions and 1094 deletions

View File

@@ -106,13 +106,13 @@ export class WaitingWebhooks {
workflow,
workflow.getNode(lastNodeExecuted) as INode,
additionalData,
).filter((webhook) => {
).find((webhook) => {
return (
webhook.httpMethod === httpMethod &&
webhook.path === path &&
webhook.webhookDescription.restartWebhook === true
);
})[0];
});
if (webhookData === undefined) {
// If no data got found it means that the execution can not be started via a webhook.