Skip to content

Commit

Permalink
fix(article): only 3 latest article
Browse files Browse the repository at this point in the history
  • Loading branch information
gracefulBrown committed Jun 5, 2024
1 parent 7a61be1 commit ceef3a9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ private List<ArticleResponse> fetchArticleWhenMemberUpdated(Member member) {
try {
List<Article> newArticles = findNewArticles(member).stream()
.sorted(Comparator.comparing(Article::getPublishedAt).reversed())
.limit(10)
.limit(3)
.collect(toList());

if (newArticles.isEmpty()) {
Expand Down

0 comments on commit ceef3a9

Please sign in to comment.