mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
⚡ Small improvements
This commit is contained in:
@@ -39,7 +39,7 @@ export class ActiveWebhooks {
|
|||||||
|
|
||||||
//check that there is not a webhook already registed with that path/method
|
//check that there is not a webhook already registed with that path/method
|
||||||
if (this.webhookUrls[webhookKey] !== undefined) {
|
if (this.webhookUrls[webhookKey] !== undefined) {
|
||||||
throw new Error('There is test wenhook registered on that path');
|
throw new Error(`Test-Webhook can not be activated because another one with the same method "${webhookData.httpMethod}" and path "${webhookData.path}" is already active!`);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.workflowWebhooks[webhookData.workflowId] === undefined) {
|
if (this.workflowWebhooks[webhookData.workflowId] === undefined) {
|
||||||
|
|||||||
@@ -133,7 +133,7 @@ export class Webhook implements INodeType {
|
|||||||
default: '',
|
default: '',
|
||||||
placeholder: 'webhook',
|
placeholder: 'webhook',
|
||||||
required: true,
|
required: true,
|
||||||
description: 'The path to listen to. Slashes("/") in the path are not allowed.',
|
description: 'The path to listen to.',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Response Code',
|
displayName: 'Response Code',
|
||||||
|
|||||||
Reference in New Issue
Block a user