Skip to content

Commit 3856983

Browse files
authored
fix: 아티클 목록 정렬 기준을 게재일(publishedAt) DESC로 변경
fix: 아티클 목록 정렬 기준을 게재일(publishedAt) DESC로 변경
2 parents 1ef1904 + a094e89 commit 3856983

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/com/bootsignal/domain/tech_article/service/TechArticleService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,6 @@ private LocalDate findLatestBatchDate(ArticleSource source) {
5454
// 페이지네이션 정렬
5555
private Pageable toSortedPageable(Pageable pageable) {
5656
int size = Math.min(pageable.getPageSize(), MAX_PAGE_SIZE);
57-
return PageRequest.of(pageable.getPageNumber(), size, Sort.by(Sort.Direction.DESC, "updatedAt"));
57+
return PageRequest.of(pageable.getPageNumber(), size, Sort.by(Sort.Direction.DESC, "publishedAt"));
5858
}
5959
}

0 commit comments

Comments
 (0)