From 5c9e31692c16d4712ef0c0aa72b49396c047e56d Mon Sep 17 00:00:00 2001 From: Jihun-Hwang Date: Tue, 30 Jul 2024 00:10:16 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=95=84=ED=8B=B0=ED=81=B4=EC=9D=B4=20?= =?UTF-8?q?=EC=9D=B4=EB=AF=B8=20=ED=85=8C=EC=9D=B4=EB=B8=94=EC=97=90=20?= =?UTF-8?q?=EC=9E=88=EB=8A=90=20=EA=B2=BD=EC=9A=B0=EC=97=90=EB=8F=84=20?= =?UTF-8?q?=EC=BB=A8=ED=85=90=EC=B8=A0=20=EC=A1=B0=ED=9A=8C=EB=90=98?= =?UTF-8?q?=EB=8F=84=EB=A1=9D=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/domain/article/usecase/ReadArticlesUseCase.kt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/api/src/main/kotlin/com/few/api/domain/article/usecase/ReadArticlesUseCase.kt b/api/src/main/kotlin/com/few/api/domain/article/usecase/ReadArticlesUseCase.kt index 3cddb5272..c07aff30c 100644 --- a/api/src/main/kotlin/com/few/api/domain/article/usecase/ReadArticlesUseCase.kt +++ b/api/src/main/kotlin/com/few/api/domain/article/usecase/ReadArticlesUseCase.kt @@ -65,14 +65,14 @@ class ReadArticlesUseCase( existInArticleMainCardRecords = (existInArticleMainCardRecords + joinedArticleMainCardRecords).toSet() - // 아티클 컨텐츠 조회 - val selectArticleContentsRecords: List = - articleDao.selectArticleContents(existInArticleMainCardRecords.map { it.articleId }.toSet()) - setContentsToRecords(selectArticleContentsRecords, existInArticleMainCardRecords) - // TODO: 결과를 로컬 캐시에 저장 } + // 아티클 컨텐츠 조회 + val selectArticleContentsRecords: List = + articleDao.selectArticleContents(existInArticleMainCardRecords.map { it.articleId }.toSet()) + setContentsToRecords(selectArticleContentsRecords, existInArticleMainCardRecords) + val sortedArticles = updateAndSortArticleViews(existInArticleMainCardRecords, articleViewsRecords) val articleUseCaseOuts: List = sortedArticles.map { a ->