renamed opeation

This commit is contained in:
Ricardo Espinoza 2019-11-21 12:52:57 -05:00
parent 1b111d4aba
commit c91bc56792
2 changed files with 6 additions and 6 deletions

View file

@ -34,8 +34,8 @@ export const companyOpeations = [
description: 'List companies',
},
{
name: 'Company Users',
value: 'companyUsers',
name: 'Users',
value: 'users',
description: `List company's users`,
},
],
@ -47,7 +47,7 @@ export const companyOpeations = [
export const companyFields = [
/* -------------------------------------------------------------------------- */
/* company:companyUsers */
/* company:users */
/* -------------------------------------------------------------------------- */
{
@ -60,7 +60,7 @@ export const companyFields = [
'company',
],
operation: [
'companyUsers',
'users',
],
},
},
@ -93,7 +93,7 @@ export const companyFields = [
'company',
],
operation: [
'companyUsers',
'users',
],
},
},

View file

@ -508,7 +508,7 @@ export class Intercom implements INodeType {
throw new Error(`Intercom Error: ${JSON.stringify(err)}`);
}
}
if (operation === 'companyUsers') {
if (operation === 'users') {
let query = '';
const listBy = this.getNodeParameter('listBy', 0) as string;
const value = this.getNodeParameter('value', i) as string;