Skip to content

Commit

Permalink
🚑 hotfix: search recommend term active issue fix (#430)
Browse files Browse the repository at this point in the history
  • Loading branch information
seonghun-dev authored Jan 22, 2024
1 parent eecc7aa commit 679787c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
import java.util.Optional;

public interface SearchRecommendTermRepository extends JpaRepository<SearchRecommendTerm, Long> {
@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<SearchRecommendTerm> getRandomSearchRecommendTerm();
}

0 comments on commit 679787c

Please sign in to comment.