From 8c1cec9bb7fe74b626287d23897f9180488185ff Mon Sep 17 00:00:00 2001 From: Dimitri DI GUSTO <dimitri.digusto@ausy.fr> Date: Wed, 12 Jan 2022 15:11:08 +0100 Subject: [PATCH] Try to fix TAC init on prod --- src/app/app.module.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/app.module.ts b/src/app/app.module.ts index e564d46e..18182107 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(); -- GitLab