mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 04:34:06 -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,
|
||||
description: 'Starts the workflow when Asana events occure.',
|
||||
defaults: {
|
||||
name: 'Asana Trigger',
|
||||
name: 'Asana-Trigger',
|
||||
color: '#559922',
|
||||
},
|
||||
inputs: [],
|
||||
|
@ -97,7 +97,11 @@ export class AsanaTrigger implements INodeType {
|
|||
return true;
|
||||
},
|
||||
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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue