diff --git a/backend/streetdrop-api/src/main/java/com/depromeet/domains/recommend/repository/SearchRecommendTermRepository.java b/backend/streetdrop-api/src/main/java/com/depromeet/domains/recommend/repository/SearchRecommendTermRepository.java index 10c70457..00e8818d 100644 --- a/backend/streetdrop-api/src/main/java/com/depromeet/domains/recommend/repository/SearchRecommendTermRepository.java +++ b/backend/streetdrop-api/src/main/java/com/depromeet/domains/recommend/repository/SearchRecommendTermRepository.java @@ -7,6 +7,6 @@ import java.util.Optional; public interface SearchRecommendTermRepository extends JpaRepository { - @Query(value = "SELECT s FROM SearchRecommendTerm s ORDER BY RAND() LIMIT 1") + @Query(value = "SELECT s FROM SearchRecommendTerm s WHERE s.active = true ORDER BY RAND() LIMIT 1") Optional getRandomSearchRecommendTerm(); }