(app.resolvers) Removed the extra user getter call since the user data already comes with the sign-in process to prevent confusion for the newcomers

This commit is contained in:
Sercan Yemen 2022-08-24 11:06:58 +03:00
parent 6599587e31
commit 51ee16ed93

View File

@ -6,7 +6,6 @@ import { NavigationService } from 'app/core/navigation/navigation.service';
import { NotificationsService } from 'app/layout/common/notifications/notifications.service'; import { NotificationsService } from 'app/layout/common/notifications/notifications.service';
import { QuickChatService } from 'app/layout/common/quick-chat/quick-chat.service'; import { QuickChatService } from 'app/layout/common/quick-chat/quick-chat.service';
import { ShortcutsService } from 'app/layout/common/shortcuts/shortcuts.service'; import { ShortcutsService } from 'app/layout/common/shortcuts/shortcuts.service';
import { UserService } from 'app/core/user/user.service';
@Injectable({ @Injectable({
providedIn: 'root' providedIn: 'root'
@ -21,8 +20,7 @@ export class InitialDataResolver implements Resolve<any>
private _navigationService: NavigationService, private _navigationService: NavigationService,
private _notificationsService: NotificationsService, private _notificationsService: NotificationsService,
private _quickChatService: QuickChatService, private _quickChatService: QuickChatService,
private _shortcutsService: ShortcutsService, private _shortcutsService: ShortcutsService
private _userService: UserService
) )
{ {
} }
@ -45,8 +43,7 @@ export class InitialDataResolver implements Resolve<any>
this._messagesService.getAll(), this._messagesService.getAll(),
this._notificationsService.getAll(), this._notificationsService.getAll(),
this._quickChatService.getChats(), this._quickChatService.getChats(),
this._shortcutsService.getAll(), this._shortcutsService.getAll()
this._userService.get()
]); ]);
} }
} }