From 7e168d8931f41d19ef75fe04da5c002b7d883beb Mon Sep 17 00:00:00 2001 From: dw-0 Date: Sun, 13 Oct 2024 22:25:58 +0200 Subject: [PATCH] refactor: make configurationService public to satisfy typescript compiler Signed-off-by: Dominik Willner --- apps/api/src/app/auth/google.strategy.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/apps/api/src/app/auth/google.strategy.ts b/apps/api/src/app/auth/google.strategy.ts index 98dd9eac1..02f82a7a8 100644 --- a/apps/api/src/app/auth/google.strategy.ts +++ b/apps/api/src/app/auth/google.strategy.ts @@ -1,6 +1,5 @@ import { ConfigurationService } from '@ghostfolio/api/services/configuration/configuration.service'; -import { inject } from '@angular/core'; import { Injectable, Logger } from '@nestjs/common'; import { PassportStrategy } from '@nestjs/passport'; import { Provider } from '@prisma/client'; @@ -10,10 +9,10 @@ import { AuthService } from './auth.service'; @Injectable() export class GoogleStrategy extends PassportStrategy(Strategy, 'google') { - private readonly authService = inject(AuthService); - - public constructor() { - const configurationService = inject(ConfigurationService); + public constructor( + private readonly authService: AuthService, + configurationService: ConfigurationService + ) { super({ callbackURL: `${configurationService.get( 'ROOT_URL'