Skip to content

Commit

Permalink
modify(#60): rxjs 문법 에러 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
hobiJeong committed Nov 16, 2023
1 parent 9ff9819 commit 1fb7982
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/chat/services/chat.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,12 @@ export class ChatService {
) {}

notificationListener() {
return (
this.subject
.asObservable()
.pipe(
map((notification: Notification) => JSON.stringify(notification)),
),
return this.subject.asObservable().pipe(
map((notification: Notification) => JSON.stringify(notification)),
catchError((err) => {
this.logger.error('notificationListener : ' + err.message);
throw new HttpException(err.message, HttpStatus.INTERNAL_SERVER_ERROR);
})
}),
);
}
async getChatRooms(myId: number) {
Expand Down

0 comments on commit 1fb7982

Please sign in to comment.