mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 04:04:06 -08:00
fix(LinkedIn Node): Fix issue with legacy credential no longer working (#9912)
This commit is contained in:
parent
7044d1ca28
commit
873b7e59dc
|
@ -86,7 +86,7 @@ export class LinkedIn implements INodeType {
|
|||
// https://docs.microsoft.com/en-us/linkedin/consumer/integrations/self-serve/sign-in-with-linkedin
|
||||
async getPersonUrn(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
|
||||
const authentication = this.getNodeParameter('authentication', 0);
|
||||
let endpoint = '/me';
|
||||
let endpoint = '/v2/me';
|
||||
if (authentication === 'standard') {
|
||||
const { legacy } = await this.getCredentials('linkedInOAuth2Api');
|
||||
if (!legacy) {
|
||||
|
|
Loading…
Reference in a new issue