fix(NocoDB Node): Fix authentication issue (#3750)

This commit is contained in:
Jonathan Bennetts 2022-07-21 12:55:20 +01:00 committed by GitHub
parent 3a98028722
commit e65016c861
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 8 deletions

View file

@ -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',
},
};
}

View file

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