🎨 fix typescript issue

This commit is contained in:
Ben Hesseldieck 2021-01-15 16:35:49 +01:00
parent 07502c4124
commit 3ec6552845

View file

@ -98,7 +98,7 @@ export class TestWebhooks {
return new Promise(async (resolve, reject) => { return new Promise(async (resolve, reject) => {
try { try {
const executionMode = 'manual'; const executionMode = 'manual';
const executionId = await WebhookHelpers.executeWebhook(workflow, webhookData, this.testWebhookData[webhookKey].workflowData, workflowStartNode, executionMode, this.testWebhookData[webhookKey].sessionId, request, response, (error: Error | null, data: IResponseCallbackData) => { const executionId = await WebhookHelpers.executeWebhook(workflow, webhookData!, this.testWebhookData[webhookKey].workflowData, workflowStartNode, executionMode, this.testWebhookData[webhookKey].sessionId, request, response, (error: Error | null, data: IResponseCallbackData) => {
if (error !== null) { if (error !== null) {
return reject(error); return reject(error);
} }
@ -115,7 +115,7 @@ export class TestWebhooks {
// Inform editor-ui that webhook got received // Inform editor-ui that webhook got received
if (this.testWebhookData[webhookKey].sessionId !== undefined) { if (this.testWebhookData[webhookKey].sessionId !== undefined) {
const pushInstance = Push.getInstance(); const pushInstance = Push.getInstance();
pushInstance.send('testWebhookReceived', { workflowId: webhookData.workflowId, executionId }, this.testWebhookData[webhookKey].sessionId!); pushInstance.send('testWebhookReceived', { workflowId: webhookData!.workflowId, executionId }, this.testWebhookData[webhookKey].sessionId!);
} }
} catch (error) { } catch (error) {