mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 20:24:05 -08:00
🐛 Fix users:Company operation in Intercom node (#1666)
This commit is contained in:
parent
cc5b1d9cd2
commit
6fcbb2ad45
|
@ -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';
|
||||
|
|
Loading…
Reference in a new issue