diff --git a/backend/src/main/java/com/worlabel/domain/review/repository/ReviewRepository.java b/backend/src/main/java/com/worlabel/domain/review/repository/ReviewRepository.java index ba48fbf..85efe72 100644 --- a/backend/src/main/java/com/worlabel/domain/review/repository/ReviewRepository.java +++ b/backend/src/main/java/com/worlabel/domain/review/repository/ReviewRepository.java @@ -20,7 +20,7 @@ public interface ReviewRepository extends JpaRepository { @Query(value = "SELECT r.*, m.* " + "FROM review r JOIN member m ON r.member_id = m.member_id " + - "WHERE r.project_id = :projectId AND (:reviewStatus IS NULL OR r.review_status = :reviewStatus) AND (:lastReviewId IS NULL OR r.review_id < :lastReviewId) " + + "WHERE r.project_id = :projectId AND (:reviewStatus IS NULL OR r.status = :reviewStatus) AND (:lastReviewId IS NULL OR r.review_id < :lastReviewId) " + "ORDER BY r.review_id DESC LIMIT :limit", nativeQuery = true) List findReviewsNativeWithLimit( @Param("projectId") Integer projectId,