Skip to content

Commit bb50979

Browse files
committed
fix: 메일 발송 아티클 조회시 source 같이 로딩
1 parent 127b360 commit bb50979

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/com/davcatch/devcatch/repository/article/ArticleRepository.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public interface ArticleRepository extends JpaRepository<Article, Long> {
2222
+ "limit 1 ", nativeQuery = true)
2323
Optional<Article> findLastPublishedArticle(Long sourceId);
2424

25-
@EntityGraph(attributePaths = {"articleTags", "articleTags.tag"})
25+
@EntityGraph(attributePaths = {"source", "articleTags", "articleTags.tag"})
2626
@Query("select a from Article a "
2727
+ "where a.isSent = false ")
2828
List<Article> findSendArticles();

0 commit comments

Comments
 (0)