mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
🐛 Fix issue that when test webhook got called to fast it was not
available yet
This commit is contained in:
parent
45c448b979
commit
5f471c2ab3
|
@ -131,13 +131,13 @@ export class TestWebhooks {
|
||||||
|
|
||||||
let key: string;
|
let key: string;
|
||||||
for (const webhookData of webhooks) {
|
for (const webhookData of webhooks) {
|
||||||
await this.activeWebhooks!.add(webhookData, mode);
|
|
||||||
key = this.activeWebhooks!.getWebhookKey(webhookData.httpMethod, webhookData.path);
|
key = this.activeWebhooks!.getWebhookKey(webhookData.httpMethod, webhookData.path);
|
||||||
this.testWebhookData[key] = {
|
this.testWebhookData[key] = {
|
||||||
sessionId,
|
sessionId,
|
||||||
timeout,
|
timeout,
|
||||||
workflowData,
|
workflowData,
|
||||||
};
|
};
|
||||||
|
await this.activeWebhooks!.add(webhookData, mode);
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue