From e65016c861176a7b17f23c5fbf3c0a3fcc1e5e1d Mon Sep 17 00:00:00 2001 From: Jonathan Bennetts Date: Thu, 21 Jul 2022 12:55:20 +0100 Subject: [PATCH] fix(NocoDB Node): Fix authentication issue (#3750) --- packages/nodes-base/credentials/NocoDb.credentials.ts | 8 +------- packages/nodes-base/nodes/NocoDB/GenericFunctions.ts | 2 +- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/packages/nodes-base/credentials/NocoDb.credentials.ts b/packages/nodes-base/credentials/NocoDb.credentials.ts index 3d94fd7d6b..90ae27fdb6 100644 --- a/packages/nodes-base/credentials/NocoDb.credentials.ts +++ b/packages/nodes-base/credentials/NocoDb.credentials.ts @@ -29,14 +29,8 @@ export class NocoDb implements ICredentialType { type:'generic', properties: { headers:{ - 'xc-auth': '={{credentials.apiToken}}', + 'xc-auth': '={{$credentials.apiToken}}', }, }, }; - test: ICredentialTestRequest = { - request: { - baseURL: '={{$credentials.host}}', - url: '/lists', - }, - }; } diff --git a/packages/nodes-base/nodes/NocoDB/GenericFunctions.ts b/packages/nodes-base/nodes/NocoDB/GenericFunctions.ts index 21f221cbce..053bf2dc46 100644 --- a/packages/nodes-base/nodes/NocoDB/GenericFunctions.ts +++ b/packages/nodes-base/nodes/NocoDB/GenericFunctions.ts @@ -56,7 +56,7 @@ export async function apiRequest(this: IHookFunctions | IExecuteFunctions | ILoa } try { - return await this.helpers.requestWithAuthentication.call(this, 'nocodbApi', options); + return await this.helpers.requestWithAuthentication.call(this, 'nocoDb', options); } catch (error) { throw new NodeApiError(this.getNode(), error); }