From d17e9e925cf9f2d3a9778a8c7daba9d9244aa098 Mon Sep 17 00:00:00 2001 From: gkfktkrh153 Date: Fri, 29 Mar 2024 17:33:05 +0900 Subject: [PATCH] =?UTF-8?q?=EC=B1=84=ED=8C=85=EB=B0=A9=20=ED=98=84?= =?UTF-8?q?=ED=99=A9=20=EA=B4=80=EB=A6=AC=20=EB=A1=9C=EC=A7=81=20=EB=B2=84?= =?UTF-8?q?=EA=B7=B8=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../domain/chatroom/service/ChatRoomRedisService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/api/farmingsoon/domain/chatroom/service/ChatRoomRedisService.java b/src/main/java/com/api/farmingsoon/domain/chatroom/service/ChatRoomRedisService.java index b756420..806fec2 100644 --- a/src/main/java/com/api/farmingsoon/domain/chatroom/service/ChatRoomRedisService.java +++ b/src/main/java/com/api/farmingsoon/domain/chatroom/service/ChatRoomRedisService.java @@ -21,7 +21,7 @@ public void connectChatRoom(Long chatRoomId, String sessionId) { * 채팅방에 남은 사람이 한명이라면 나갈 때 키 삭제 */ public void disConnectChatRoom(String sessionId) { - Long chatRoomId = (Long) redisService.getData(sessionId); + Long chatRoomId = Long.valueOf((String) redisService.getData(sessionId)); if(redisService.getSetSize("chatRoom_" + chatRoomId) == 1){ redisService.deleteData("chatRoom_" + chatRoomId); }