Skip to content

Commit

Permalink
Merge pull request #62 from Domitory-CheckMate/feature/61-chat
Browse files Browse the repository at this point in the history
[fix] 채팅 읽음 버그 수정
  • Loading branch information
RyuKwanKon authored Jan 24, 2024
2 parents 999aaab + 85dfb62 commit 3ebf33a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public void updateChatRead(final String chatRoomId, final Long userId) {
Update update = new Update();

query.addCriteria(Criteria.where("chatRoomId").is(chatRoomId)
.and("sender").ne(userId));
.and("senderId").ne(userId));

update.set("isRead", true);
mongoTemplate.updateMulti(query, update, Chat.class);
Expand Down

0 comments on commit 3ebf33a

Please sign in to comment.