Fix appconfig injection
FarmMaps.Develop/FarmMapsLib/pipeline/head There was a failure building this commit Details

Peter Bastiani 2024-04-15 11:43:58 +02:00
parent 1c3f5600f8
commit 83739ee4e9
1 changed files with 2 additions and 3 deletions

View File

@ -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<any> {
export function appConfigFactory(injector:Injector, appConfig: AppConfig, oauthService: OAuthService, authconfigFactory:IAuthconfigFactory,authStorage:OAuthStorage,itemtypeService:ItemTypeService): () => Promise<any> {
return (): Promise<any> => {
return new Promise<void>((resolve,reject) => {
appConfig.load().then(() => {