mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
⚡ Small improvement
This commit is contained in:
parent
8d778bf06e
commit
2ef5c8c836
|
@ -32,7 +32,7 @@ export async function zendeskApiRequest(this: IHookFunctions | IExecuteFunctions
|
|||
}
|
||||
|
||||
try {
|
||||
if (authenticationMethod === 'accessToken') {
|
||||
if (authenticationMethod === 'apiToken') {
|
||||
const credentials = this.getCredentials('zendeskApi');
|
||||
|
||||
if (credentials === undefined) {
|
||||
|
|
|
@ -55,7 +55,7 @@ export class Zendesk implements INodeType {
|
|||
displayOptions: {
|
||||
show: {
|
||||
authentication: [
|
||||
'accessToken',
|
||||
'apiToken',
|
||||
],
|
||||
},
|
||||
},
|
||||
|
@ -79,15 +79,15 @@ export class Zendesk implements INodeType {
|
|||
type: 'options',
|
||||
options: [
|
||||
{
|
||||
name: 'Access Token',
|
||||
value: 'accessToken',
|
||||
name: 'API Token',
|
||||
value: 'apiToken',
|
||||
},
|
||||
{
|
||||
name: 'OAuth2',
|
||||
value: 'oAuth2',
|
||||
},
|
||||
],
|
||||
default: 'accessToken',
|
||||
default: 'apiToken',
|
||||
description: 'The resource to operate on.',
|
||||
},
|
||||
{
|
||||
|
|
|
@ -45,7 +45,7 @@ export class ZendeskTrigger implements INodeType {
|
|||
displayOptions: {
|
||||
show: {
|
||||
authentication: [
|
||||
'accessToken',
|
||||
'apiToken',
|
||||
],
|
||||
},
|
||||
},
|
||||
|
@ -77,15 +77,15 @@ export class ZendeskTrigger implements INodeType {
|
|||
type: 'options',
|
||||
options: [
|
||||
{
|
||||
name: 'Access Token',
|
||||
value: 'accessToken',
|
||||
name: 'API Token',
|
||||
value: 'apiToken',
|
||||
},
|
||||
{
|
||||
name: 'OAuth2',
|
||||
value: 'oAuth2',
|
||||
},
|
||||
],
|
||||
default: 'accessToken',
|
||||
default: 'apiToken',
|
||||
description: 'The resource to operate on.',
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue