From ceef3a90a87816b71097f3d1cedb060d21e1e236 Mon Sep 17 00:00:00 2001 From: gracefulBrown Date: Wed, 5 Jun 2024 14:25:09 +0900 Subject: [PATCH] fix(article): only 3 latest article --- .../java/wooteco/prolog/article/application/ArticleService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/main/java/wooteco/prolog/article/application/ArticleService.java b/backend/src/main/java/wooteco/prolog/article/application/ArticleService.java index 864f1cfba..9b4806da1 100644 --- a/backend/src/main/java/wooteco/prolog/article/application/ArticleService.java +++ b/backend/src/main/java/wooteco/prolog/article/application/ArticleService.java @@ -162,7 +162,7 @@ private List fetchArticleWhenMemberUpdated(Member member) { try { List
newArticles = findNewArticles(member).stream() .sorted(Comparator.comparing(Article::getPublishedAt).reversed()) - .limit(10) + .limit(3) .collect(toList()); if (newArticles.isEmpty()) {