diff --git a/src/main/java/org/gachon/checkmate/domain/chat/mongorepository/ChatCustomRepositoryImpl.java b/src/main/java/org/gachon/checkmate/domain/chat/mongorepository/ChatCustomRepositoryImpl.java index 8a37f4d..6ddc083 100644 --- a/src/main/java/org/gachon/checkmate/domain/chat/mongorepository/ChatCustomRepositoryImpl.java +++ b/src/main/java/org/gachon/checkmate/domain/chat/mongorepository/ChatCustomRepositoryImpl.java @@ -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);