mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
fix(NocoDB Node): Fix authentication issue (#3750)
This commit is contained in:
parent
3a98028722
commit
e65016c861
|
@ -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',
|
||||
},
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue