Skip to content

Commit

Permalink
[Feat/#302] Remove null check logic
Browse files Browse the repository at this point in the history
  • Loading branch information
ahnsugyeong committed Jun 10, 2024
1 parent c36a988 commit 57dea41
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ public Page<ChatRoom> findChatRoomsByKeywordExcludingMember(Member member,
}

baseQuery.join(chatRoom.chatRoomMembers, chatRoomMember)
.where(chatRoomMember.member.id.ne(member.getId()).or(chatRoomMember.member.id.isNull()));
.where(chatRoomMember.member.id.ne(member.getId()));
countQuery.join(chatRoom.chatRoomMembers, chatRoomMember)
.where(chatRoomMember.member.id.ne(member.getId()).or(chatRoomMember.member.id.isNull()));
.where(chatRoomMember.member.id.ne(member.getId()));

List<ChatRoom> chatRooms = baseQuery
.offset(pageable.getOffset())
Expand Down

0 comments on commit 57dea41

Please sign in to comment.