mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
⚡ Fix potential issues with Affinity Trigger Nodes
This commit is contained in:
@@ -25,7 +25,7 @@ export class AffinityTrigger implements INodeType {
|
||||
version: 1,
|
||||
description: 'Handle Affinity events via webhooks',
|
||||
defaults: {
|
||||
name: 'Affinity Trigger',
|
||||
name: 'Affinity-Trigger',
|
||||
color: '#3343df',
|
||||
},
|
||||
inputs: [],
|
||||
@@ -184,7 +184,11 @@ export class AffinityTrigger implements INodeType {
|
||||
return false;
|
||||
},
|
||||
async create(this: IHookFunctions): Promise<boolean> {
|
||||
const webhookUrl = this.getNodeWebhookUrl('default');
|
||||
const webhookUrl = this.getNodeWebhookUrl('default') as string;
|
||||
|
||||
if (webhookUrl.includes('%20')) {
|
||||
throw new Error('The name of the Affinity Trigger Node is not allowed to contain any spaces!');
|
||||
}
|
||||
|
||||
const events = this.getNodeParameter('events') as string[];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user