mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
fix(core): Fix crash caused by parallel test-webhook calls (#3756)
Fix TestWebhooks undefined properties read
This commit is contained in:
@@ -159,8 +159,10 @@ export class TestWebhooks {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Remove the webhook
|
// Remove the webhook
|
||||||
|
if (this.testWebhookData[webhookKey]) {
|
||||||
clearTimeout(this.testWebhookData[webhookKey].timeout);
|
clearTimeout(this.testWebhookData[webhookKey].timeout);
|
||||||
delete this.testWebhookData[webhookKey];
|
delete this.testWebhookData[webhookKey];
|
||||||
|
}
|
||||||
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
||||||
this.activeWebhooks!.removeWorkflow(workflow);
|
this.activeWebhooks!.removeWorkflow(workflow);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user