mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
fix(NocoDB Node): Fix authentication issue (#3750)
This commit is contained in:
committed by
GitHub
parent
3a98028722
commit
e65016c861
@@ -29,14 +29,8 @@ export class NocoDb implements ICredentialType {
|
|||||||
type:'generic',
|
type:'generic',
|
||||||
properties: {
|
properties: {
|
||||||
headers:{
|
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 {
|
try {
|
||||||
return await this.helpers.requestWithAuthentication.call(this, 'nocodbApi', options);
|
return await this.helpers.requestWithAuthentication.call(this, 'nocoDb', options);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
throw new NodeApiError(this.getNode(), error);
|
throw new NodeApiError(this.getNode(), error);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user