Skip to content

Commit a543813

Browse files
yongseong123claude
andcommitted
fix: 아티클 목록 정렬 기준을 updatedAt에서 publishedAt(게재일) DESC로 변경
배치 수집된 아티클은 updatedAt이 동일하여 게재일 순서가 보장되지 않았음. publishedAt DESC 정렬로 최신 게재 아티클이 상단에 표시되도록 수정. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 25ef423 commit a543813

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)