Skip to content

Commit

Permalink
[fix] #61 채팅 읽음 버그 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
OJOJIN committed Jan 24, 2024
1 parent ba98181 commit 85dfb62
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 85dfb62

Please sign in to comment.