Skip to content

Commit 5b1c3d6

Browse files
Use setAgent as a method, not a value
1 parent e5aae1d commit 5b1c3d6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/apollo-collaboration-server/src/utils/strategies/google.strategy.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ export class GoogleStrategy extends PassportStrategy(Strategy) {
7474
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-member-access
7575
const oauth2 = (this as any)._oauth2
7676
if (oauth2) {
77-
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
78-
oauth2.setAgent = agent
77+
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call
78+
oauth2.setAgent(agent)
7979
this.logger.debug(`GoogleStrategy configured to use proxy: ${proxy}`)
8080
}
8181
}

packages/apollo-collaboration-server/src/utils/strategies/microsoft.strategy.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ export class MicrosoftStrategy extends PassportStrategy(Strategy) {
8484
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-member-access
8585
const oauth2 = (this as any)._oauth2
8686
if (oauth2) {
87-
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
88-
oauth2.setAgent = agent
87+
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call
88+
oauth2.setAgent(agent)
8989
this.logger.debug(
9090
`Microsoft Strategy configured to use proxy: ${proxy}`,
9191
)

0 commit comments

Comments
 (0)