From 6342bf0f64bb0f4f258a1f7d4b0bb627f29dab54 Mon Sep 17 00:00:00 2001 From: Richard Park Date: Fri, 27 Dec 2019 14:22:06 +0900 Subject: [PATCH] bug fixed --- .../src/app/store/messenger/message/effects.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/projects/ucap-webmessenger-app/src/app/store/messenger/message/effects.ts b/projects/ucap-webmessenger-app/src/app/store/messenger/message/effects.ts index d273c4c5..7dbe4bfe 100644 --- a/projects/ucap-webmessenger-app/src/app/store/messenger/message/effects.ts +++ b/projects/ucap-webmessenger-app/src/app/store/messenger/message/effects.ts @@ -58,13 +58,6 @@ import { export class Effects { retrieveMessage$ = createEffect( () => { - // const loginResInfo: LoginResponse = this.sessionStorageService.get< - // LoginResponse - // >(KEY_LOGIN_RES_INFO); - const environmentsInfo = this.sessionStorageService.get( - KEY_ENVIRONMENTS_INFO - ); - return this.actions$.pipe( ofType(retrieveMessage), withLatestFrom( @@ -76,6 +69,13 @@ export class Effects { ) ), switchMap(([req, loginResInfo]) => { + // const loginResInfo: LoginResponse = this.sessionStorageService.get< + // LoginResponse + // >(KEY_LOGIN_RES_INFO); + const environmentsInfo = this.sessionStorageService.get< + EnvironmentsInfo + >(KEY_ENVIRONMENTS_INFO); + const request: RetrieveRequest = { userSeq: loginResInfo.userSeq, deviceType: environmentsInfo.deviceType,