mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-13 05:47:31 -08:00
⚡ Fix issue with Asana Trigger Node #531
This commit is contained in:
parent
3d6a75d392
commit
73edcdcbc4
|
@ -25,7 +25,7 @@ export class AsanaTrigger implements INodeType {
|
||||||
version: 1,
|
version: 1,
|
||||||
description: 'Starts the workflow when Asana events occure.',
|
description: 'Starts the workflow when Asana events occure.',
|
||||||
defaults: {
|
defaults: {
|
||||||
name: 'Asana Trigger',
|
name: 'Asana-Trigger',
|
||||||
color: '#559922',
|
color: '#559922',
|
||||||
},
|
},
|
||||||
inputs: [],
|
inputs: [],
|
||||||
|
@ -97,7 +97,11 @@ export class AsanaTrigger implements INodeType {
|
||||||
return true;
|
return true;
|
||||||
},
|
},
|
||||||
async create(this: IHookFunctions): Promise<boolean> {
|
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 Asana Trigger Node is not allowed to contain any spaces!');
|
||||||
|
}
|
||||||
|
|
||||||
const resource = this.getNodeParameter('resource') as string;
|
const resource = this.getNodeParameter('resource') as string;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue