From 6fcbb2ad45d745ce548bfd82260b1c7a4d196085 Mon Sep 17 00:00:00 2001 From: MedAliMarz Date: Sat, 24 Apr 2021 17:29:09 +0200 Subject: [PATCH] :bug: Fix users:Company operation in Intercom node (#1666) --- packages/nodes-base/nodes/Intercom/Intercom.node.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/nodes-base/nodes/Intercom/Intercom.node.ts b/packages/nodes-base/nodes/Intercom/Intercom.node.ts index 57903ca91d..44b50406cd 100644 --- a/packages/nodes-base/nodes/Intercom/Intercom.node.ts +++ b/packages/nodes-base/nodes/Intercom/Intercom.node.ts @@ -512,13 +512,13 @@ export class Intercom implements INodeType { } } if (operation === 'users') { - const filterBy = this.getNodeParameter('filterBy', 0) as string; + const listBy = this.getNodeParameter('listBy', 0) as string; const value = this.getNodeParameter('value', i) as string; - if (filterBy === 'companyId') { + if (listBy === 'companyId') { qs.company_id = value; } try { - if (filterBy === 'id') { + if (listBy === 'id') { responseData = await intercomApiRequest.call(this, `/companies/${value}/users`, 'GET', {}, qs); } else { qs.type = 'users';