🐛 Fix bug that webhooks could not be tested anymore

This commit is contained in:
Jan Oberhauser 2019-07-26 14:17:00 +02:00
parent 7e4066ddb3
commit f2102f8ea0
4 changed files with 4 additions and 1 deletions

View file

@ -271,6 +271,7 @@ export interface IPushDataNodeExecuteBefore {
export interface IPushDataTestWebhook {
executionId: string;
workflowId: string;
}

View file

@ -91,7 +91,7 @@ export class TestWebhooks {
// Inform editor-ui that webhook got received
if (this.testWebhookData[webhookKey].sessionId !== undefined) {
pushInstance.send('testWebhookReceived', { workflowId: webhookData.workflow.id }, this.testWebhookData[webhookKey].sessionId!);
pushInstance.send('testWebhookReceived', { workflowId: webhookData.workflow.id, executionId }, this.testWebhookData[webhookKey].sessionId!);
}
} catch (error) {

View file

@ -369,6 +369,7 @@ export interface IPushDataNodeExecuteBefore {
}
export interface IPushDataTestWebhook {
executionId: string;
workflowId: string;
}

View file

@ -223,6 +223,7 @@ export const pushConnection = mixins(
if (pushData.workflowId === this.$store.getters.workflowId) {
this.$store.commit('setExecutionWaitingForWebhook', false);
this.$store.commit('setActiveExecutionId', pushData.executionId);
}
}
},