mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-21 02:56:40 -08:00
⚡ Fix potential issues with Affinity Trigger Nodes
This commit is contained in:
parent
6785b1ed46
commit
51793c72bd
|
@ -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[];
|
||||
|
||||
|
|
Loading…
Reference in a new issue