From 83739ee4e9152c1e0fe7eaa8fb35542973eb6a74 Mon Sep 17 00:00:00 2001 From: Peter Bastiani Date: Mon, 15 Apr 2024 11:43:58 +0200 Subject: [PATCH] Fix appconfig injection --- projects/common/src/fm/shared/app.config.factory.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/projects/common/src/fm/shared/app.config.factory.ts b/projects/common/src/fm/shared/app.config.factory.ts index 845be71..e442b3d 100644 --- a/projects/common/src/fm/shared/app.config.factory.ts +++ b/projects/common/src/fm/shared/app.config.factory.ts @@ -2,10 +2,9 @@ import { OAuthService, OAuthStorage } from 'angular-oauth2-oidc'; import { ItemTypeService } from '../services/itemtype.service'; import { AppConfig } from "./app.config"; import { IAuthconfigFactory } from './authconfigFactory'; +import { Injector } from '@angular/core'; - - -export function appConfigFactory(appConfig: AppConfig, oauthService: OAuthService, authconfigFactory:IAuthconfigFactory,authStorage:OAuthStorage,itemtypeService:ItemTypeService): () => Promise { +export function appConfigFactory(injector:Injector, appConfig: AppConfig, oauthService: OAuthService, authconfigFactory:IAuthconfigFactory,authStorage:OAuthStorage,itemtypeService:ItemTypeService): () => Promise { return (): Promise => { return new Promise((resolve,reject) => { appConfig.load().then(() => {