diff --git a/src/app/app.module.ts b/src/app/app.module.ts index e564d46e27e0b9d0f4628e36838432adb6888d51..18182107a0f27ac0c204309fdfd86709e2854ff0 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -16,7 +16,7 @@ import { notificationMessages } from '../i18n/traductions'; // Function used by APP_INITIALIZER before the app start: init user info / statut (expect a promise) export function initUserService(authService: UserService, notificationService: NotificationService) { - return (): Promise<void> => { + return (): Promise<any> => { return new Promise<void>((resolve, reject) => { authService.initializeService().pipe(timeout(3000)).subscribe( () => { @@ -45,7 +45,7 @@ export function initTarteaucitronService(tarteaucitronService: TarteAuCitronServ } export function initAppConfig(appConfigService: AppConfigService) { - return (): Promise<void> => { + return (): Promise<any> => { return new Promise<void>((resolve, reject) => { appConfigService.load(); resolve();