Skip to content

Commit

Permalink
채팅방 현황 관리 로직 버그수정
Browse files Browse the repository at this point in the history
  • Loading branch information
gkfktkrh153 committed Mar 29, 2024
1 parent 056a76b commit d17e9e9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit d17e9e9

Please sign in to comment.