Small improvement

This commit is contained in:
ricardo 2020-06-14 18:19:35 -04:00
parent 8d778bf06e
commit 2ef5c8c836
3 changed files with 9 additions and 9 deletions

View file

@ -32,7 +32,7 @@ export async function zendeskApiRequest(this: IHookFunctions | IExecuteFunctions
} }
try { try {
if (authenticationMethod === 'accessToken') { if (authenticationMethod === 'apiToken') {
const credentials = this.getCredentials('zendeskApi'); const credentials = this.getCredentials('zendeskApi');
if (credentials === undefined) { if (credentials === undefined) {

View file

@ -55,7 +55,7 @@ export class Zendesk implements INodeType {
displayOptions: { displayOptions: {
show: { show: {
authentication: [ authentication: [
'accessToken', 'apiToken',
], ],
}, },
}, },
@ -79,15 +79,15 @@ export class Zendesk implements INodeType {
type: 'options', type: 'options',
options: [ options: [
{ {
name: 'Access Token', name: 'API Token',
value: 'accessToken', value: 'apiToken',
}, },
{ {
name: 'OAuth2', name: 'OAuth2',
value: 'oAuth2', value: 'oAuth2',
}, },
], ],
default: 'accessToken', default: 'apiToken',
description: 'The resource to operate on.', description: 'The resource to operate on.',
}, },
{ {

View file

@ -45,7 +45,7 @@ export class ZendeskTrigger implements INodeType {
displayOptions: { displayOptions: {
show: { show: {
authentication: [ authentication: [
'accessToken', 'apiToken',
], ],
}, },
}, },
@ -77,15 +77,15 @@ export class ZendeskTrigger implements INodeType {
type: 'options', type: 'options',
options: [ options: [
{ {
name: 'Access Token', name: 'API Token',
value: 'accessToken', value: 'apiToken',
}, },
{ {
name: 'OAuth2', name: 'OAuth2',
value: 'oAuth2', value: 'oAuth2',
}, },
], ],
default: 'accessToken', default: 'apiToken',
description: 'The resource to operate on.', description: 'The resource to operate on.',
}, },
{ {