bug fix :: 대화방 읽음 처리 버그 수정.

This commit is contained in:
leejh 2019-10-24 10:51:50 +09:00
parent f5a4039bbf
commit bb527dcb65

View File

@ -123,21 +123,18 @@ export class Effects {
{ dispatch: false }
);
read$ = createEffect(
() => {
return this.actions$.pipe(
ofType(read),
switchMap(req => {
return this.eventProtocolService.read(req).pipe(
map((res: ReadResponse) => {
readNotification({ noti: res });
}),
catchError(error => of(readFailure({ error })))
);
})
);
},
{ dispatch: false }
read$ = createEffect(() =>
this.actions$.pipe(
ofType(read),
exhaustMap(req =>
this.eventProtocolService.read(req).pipe(
map((res: ReadResponse) => {
return readNotification({ noti: res });
}),
catchError(error => of(readFailure({ error })))
)
)
)
);
readNotification$ = createEffect(