From 85dfb62af23bafb26e6fbfe23d252041aab9112f Mon Sep 17 00:00:00 2001 From: OJOJIN Date: Wed, 24 Jan 2024 21:25:48 +0900 Subject: [PATCH] =?UTF-8?q?[fix]=20#61=20=EC=B1=84=ED=8C=85=20=EC=9D=BD?= =?UTF-8?q?=EC=9D=8C=20=EB=B2=84=EA=B7=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../domain/chat/mongorepository/ChatCustomRepositoryImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);