Skip to content

Commit a0a424c

Browse files
committed
Fix:메세지 코드 변경 삭제
1 parent 89c5cb3 commit a0a424c

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/main/java/cmf/commitField/domain/chat/userChatRoom/repository/UserChatRoomRepository.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,7 @@ public interface UserChatRoomRepository extends JpaRepository<UserChatRoom, Long
2323
void deleteUserChatRoomByChatRoom_Id(Long chatRoomId);
2424
// 특정 방에서 특정 사용자만 삭제
2525
void deleteUserChatRoomByChatRoom_IdAndUserId(Long chatRoomId, Long userId);
26-
// 특정 방과 사용자 관계 삭제
27-
void deleteUserChatRoomByUserId(Long userId);
28-
// 사용자가 해당 방에 참여한 여부 확인
29-
boolean existsByChatRoomIdAndUserId(Long roomId, Long userId);
26+
3027
// 특정 방에 참여한 모든 UserChatRoom 관계 조회
3128
List<UserChatRoom> findByChatRoom_Id(Long chatRoomId);
3229
@Query("select u.user.id from UserChatRoom u where u.chatRoom.id = ?1")
@@ -36,7 +33,6 @@ public interface UserChatRoomRepository extends JpaRepository<UserChatRoom, Long
3633
//out room 조회
3734
List<UserChatRoom> findUserByChatRoomId(Long roomId);
3835

39-
Optional<UserChatRoom> findByUserId(Long userId);
4036
//채팅방 join한 user
4137
Optional<UserChatRoom> findByUserIdAndChatRoomId(Long userId, Long chatRoomId);
4238

0 commit comments

Comments
 (0)