Merge pull request #419 from gitroomhq/fix/linkedin

Linkedin problems in load companies
This commit is contained in:
Nevo David 2024-11-06 21:52:46 +07:00 committed by GitHub
commit 9ffae68f9f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 1 deletions

View File

@ -103,6 +103,8 @@ export class LinkedinPageProvider
{
headers: {
Authorization: `Bearer ${accessToken}`,
'X-Restli-Protocol-Version': '2.0.0',
'LinkedIn-Version': '202402',
},
}
)
@ -124,7 +126,10 @@ export class LinkedinPageProvider
requiredId: string,
accessToken: string
): Promise<AuthTokenDetails> {
const information = await this.fetchPageInformation(accessToken, requiredId);
const information = await this.fetchPageInformation(
accessToken,
requiredId
);
return {
id: information.id,