🐛 Fix issue that when test webhook got called to fast it was not

available yet
This commit is contained in:
Jan Oberhauser 2019-07-12 11:31:54 +02:00
parent 45c448b979
commit 5f471c2ab3

View file

@ -131,13 +131,13 @@ export class TestWebhooks {
let key: string;
for (const webhookData of webhooks) {
await this.activeWebhooks!.add(webhookData, mode);
key = this.activeWebhooks!.getWebhookKey(webhookData.httpMethod, webhookData.path);
this.testWebhookData[key] = {
sessionId,
timeout,
workflowData,
};
await this.activeWebhooks!.add(webhookData, mode);
}
return true;