Skip to content

Commit

Permalink
Merge pull request #611 from boostcampwm2023/BE-hotfix
Browse files Browse the repository at this point in the history
[BE/hotfix] chat/unread 수정
  • Loading branch information
namewhat99 authored Jan 22, 2024
2 parents 56804b3 + fd96917 commit db56a6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions BE/src/chat/chat.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,9 @@ export class ChatService {
'chat_info.sender as sender',
])
.where('chat_room.writer = :userId', { userId: userId })
.andWhere('chat_room.writer_left IS false')
.andWhere('chat_room.writer_hide IS false')
.orWhere('chat_room.user = :userId', { userId: userId })
.andWhere('chat_room.user_left IS false')
.andWhere('chat_room.user_hide IS false')
.orderBy('chat_info.create_date', 'DESC')
.getRawMany();

Expand Down

0 comments on commit db56a6d

Please sign in to comment.