mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-02 07:01:30 -08:00
⚡ Fix typo
This commit is contained in:
parent
646e1fc841
commit
1ad78f05c2
|
@ -93,14 +93,14 @@ export class AsanaTrigger implements INodeType {
|
||||||
|
|
||||||
const resource = this.getNodeParameter('resource') as string;
|
const resource = this.getNodeParameter('resource') as string;
|
||||||
|
|
||||||
const endpont = `webhooks`;
|
const endpoint = `webhooks`;
|
||||||
|
|
||||||
const body = {
|
const body = {
|
||||||
resource,
|
resource,
|
||||||
target: webhookUrl,
|
target: webhookUrl,
|
||||||
};
|
};
|
||||||
|
|
||||||
const responseData = await asanaApiRequest.call(this, 'POST', endpont, body);
|
const responseData = await asanaApiRequest.call(this, 'POST', endpoint, body);
|
||||||
|
|
||||||
if (responseData.data === undefined || responseData.data.id === undefined) {
|
if (responseData.data === undefined || responseData.data.id === undefined) {
|
||||||
// Required data is missing so was not successful
|
// Required data is missing so was not successful
|
||||||
|
|
Loading…
Reference in a new issue