diff --git a/src/main/java/in/koreatech/koin/domain/community/article/repository/ArticleRepository.java b/src/main/java/in/koreatech/koin/domain/community/article/repository/ArticleRepository.java index eb560a30b..26de4a070 100644 --- a/src/main/java/in/koreatech/koin/domain/community/article/repository/ArticleRepository.java +++ b/src/main/java/in/koreatech/koin/domain/community/article/repository/ArticleRepository.java @@ -121,7 +121,7 @@ default Article getNextArticle(Board board, Article article) { @Query("SELECT a.title FROM Article a WHERE a.id = :id") String getTitleById(@Param("id") Integer id); - @Query(value = "SELECT * FROM koreatech_articles a " + @Query(value = "SELECT * FROM new_articles a " + "WHERE a.title REGEXP '통학버스|등교버스|셔틀버스|하교버스' " + "ORDER BY a.created_at DESC LIMIT 5", nativeQuery = true) List
findBusArticlesTop5OrderByCreatedAtDesc();