Fix typo

This commit is contained in:
Jan Oberhauser 2019-07-09 20:31:44 +02:00
parent 646e1fc841
commit 1ad78f05c2

View file

@ -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