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); }