mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-21 11:49:59 +00:00
🐛 Fix bug that webhooks could not be tested anymore
This commit is contained in:
@@ -271,6 +271,7 @@ export interface IPushDataNodeExecuteBefore {
|
|||||||
|
|
||||||
|
|
||||||
export interface IPushDataTestWebhook {
|
export interface IPushDataTestWebhook {
|
||||||
|
executionId: string;
|
||||||
workflowId: string;
|
workflowId: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -91,7 +91,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) {
|
||||||
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) {
|
} catch (error) {
|
||||||
|
|||||||
@@ -369,6 +369,7 @@ export interface IPushDataNodeExecuteBefore {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface IPushDataTestWebhook {
|
export interface IPushDataTestWebhook {
|
||||||
|
executionId: string;
|
||||||
workflowId: string;
|
workflowId: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -223,6 +223,7 @@ export const pushConnection = mixins(
|
|||||||
|
|
||||||
if (pushData.workflowId === this.$store.getters.workflowId) {
|
if (pushData.workflowId === this.$store.getters.workflowId) {
|
||||||
this.$store.commit('setExecutionWaitingForWebhook', false);
|
this.$store.commit('setExecutionWaitingForWebhook', false);
|
||||||
|
this.$store.commit('setActiveExecutionId', pushData.executionId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user