diff --git a/src/main/java/connectripbe/connectrip_be/review/repository/AccompanyReviewRepository.java b/src/main/java/connectripbe/connectrip_be/review/repository/AccompanyReviewRepository.java index 35c474c8..f1d2d575 100644 --- a/src/main/java/connectripbe/connectrip_be/review/repository/AccompanyReviewRepository.java +++ b/src/main/java/connectripbe/connectrip_be/review/repository/AccompanyReviewRepository.java @@ -23,6 +23,8 @@ public interface AccompanyReviewRepository extends JpaRepository findAllTargetIdsByReviewerIdAndChatRoomId(Long reviewerId, Long chatRoomId); + + @Query("SELECT r.target FROM AccompanyReviewEntity r WHERE r.reviewer = :reviewerId AND r.chatRoom = :chatRoomId") + List findAllTargetIdsByReviewerIdAndChatRoomId(@Param("reviewerId") Long reviewerId, + @Param("chatRoomId") Long chatRoomId); }