Skip to content

Commit

Permalink
Fix: unreadChat , chatRoomList boolean 으로 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
namewhat99 committed Jan 8, 2024
1 parent 5741b63 commit 0016f86
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions BE/src/chat/chat.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,9 @@ export class ChatService {
'chat_info.sender as sender',
])
.where('chat_room.writer = :userId', { userId: userId })
.andWhere('chat_room.writer_left IS NULL')
.andWhere('chat_room.writer_left IS false')
.orWhere('chat_room.user = :userId', { userId: userId })
.andWhere('chat_room.user_left IS NULL')
.andWhere('chat_room.user_left IS false')
.orderBy('chat_info.create_date', 'DESC')
.getRawMany();

Expand Down Expand Up @@ -206,9 +206,9 @@ export class ChatService {
'chat_info.sender as sender',
])
.where('chat_room.writer = :userId', { userId: userId })
.andWhere('chat_room.writer_left IS NULL')
.andWhere('chat_room.writer_left IS false')
.orWhere('chat_room.user = :userId', { userId: userId })
.andWhere('chat_room.user_left IS NULL')
.andWhere('chat_room.user_left IS false')
.orderBy('chat_info.create_date', 'DESC')
.getRawMany();

Expand Down

0 comments on commit 0016f86

Please sign in to comment.