Skip to content

Commit 9ffae68

Browse files
authored
Merge pull request #419 from gitroomhq/fix/linkedin
Linkedin problems in load companies
2 parents aec7a49 + 3946d24 commit 9ffae68

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

libraries/nestjs-libraries/src/integrations/social/linkedin.page.provider.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ export class LinkedinPageProvider
103103
{
104104
headers: {
105105
Authorization: `Bearer ${accessToken}`,
106+
'X-Restli-Protocol-Version': '2.0.0',
107+
'LinkedIn-Version': '202402',
106108
},
107109
}
108110
)
@@ -124,7 +126,10 @@ export class LinkedinPageProvider
124126
requiredId: string,
125127
accessToken: string
126128
): Promise<AuthTokenDetails> {
127-
const information = await this.fetchPageInformation(accessToken, requiredId);
129+
const information = await this.fetchPageInformation(
130+
accessToken,
131+
requiredId
132+
);
128133

129134
return {
130135
id: information.id,

0 commit comments

Comments
 (0)