Skip to content
Snippets Groups Projects
Commit 5a3e37f3 authored by Dimitri DI GUSTO's avatar Dimitri DI GUSTO
Browse files

Merge branch 'DOS99492_TAC' into 'master'

Try to fix TAC init on prod

See merge request !150
parents 2b606aac 8c1cec9b
No related tags found
1 merge request!150Try to fix TAC init on prod
Pipeline #19856 passed
...@@ -16,7 +16,7 @@ import { notificationMessages } from '../i18n/traductions'; ...@@ -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) // Function used by APP_INITIALIZER before the app start: init user info / statut (expect a promise)
export function initUserService(authService: UserService, notificationService: NotificationService) { export function initUserService(authService: UserService, notificationService: NotificationService) {
return (): Promise<void> => { return (): Promise<any> => {
return new Promise<void>((resolve, reject) => { return new Promise<void>((resolve, reject) => {
authService.initializeService().pipe(timeout(3000)).subscribe( authService.initializeService().pipe(timeout(3000)).subscribe(
() => { () => {
...@@ -45,7 +45,7 @@ export function initTarteaucitronService(tarteaucitronService: TarteAuCitronServ ...@@ -45,7 +45,7 @@ export function initTarteaucitronService(tarteaucitronService: TarteAuCitronServ
} }
export function initAppConfig(appConfigService: AppConfigService) { export function initAppConfig(appConfigService: AppConfigService) {
return (): Promise<void> => { return (): Promise<any> => {
return new Promise<void>((resolve, reject) => { return new Promise<void>((resolve, reject) => {
appConfigService.load(); appConfigService.load();
resolve(); resolve();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment