From 9a36df87e98a135bee596483c423a319e370859e Mon Sep 17 00:00:00 2001 From: nuyh Date: Wed, 22 Nov 2023 16:33:55 +0900 Subject: [PATCH] =?UTF-8?q?style:=20=EC=A0=95=EC=A0=81=20=ED=8C=A9?= =?UTF-8?q?=ED=86=A0=EB=A6=AC=20=EB=A9=94=EC=84=9C=EB=93=9C=20=EB=84=A4?= =?UTF-8?q?=EC=9D=B4=EB=B0=8D=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #1609 --- .../wooteco/prolog/roadmap/application/KeywordService.java | 4 ++-- .../wooteco/prolog/roadmap/application/RoadMapService.java | 2 +- .../prolog/roadmap/application/dto/KeywordsResponse.java | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/src/main/java/wooteco/prolog/roadmap/application/KeywordService.java b/backend/src/main/java/wooteco/prolog/roadmap/application/KeywordService.java index cb89cbb07..c5d687c4f 100644 --- a/backend/src/main/java/wooteco/prolog/roadmap/application/KeywordService.java +++ b/backend/src/main/java/wooteco/prolog/roadmap/application/KeywordService.java @@ -84,14 +84,14 @@ public KeywordsResponse findSessionIncludeRootKeywords(final Long sessionId) { List keywords = keywordRepository.findBySessionIdAndParentIsNull(sessionId); - return KeywordsResponse.of(keywords); + return KeywordsResponse.from(keywords); } @Transactional(readOnly = true) public KeywordsResponse newFindSessionIncludeRootKeywords() { List keywords = keywordRepository.newFindByParentIsNull(); - return KeywordsResponse.of(keywords); + return KeywordsResponse.from(keywords); } public void updateKeyword( diff --git a/backend/src/main/java/wooteco/prolog/roadmap/application/RoadMapService.java b/backend/src/main/java/wooteco/prolog/roadmap/application/RoadMapService.java index fbfae1d22..d5514c3f6 100644 --- a/backend/src/main/java/wooteco/prolog/roadmap/application/RoadMapService.java +++ b/backend/src/main/java/wooteco/prolog/roadmap/application/RoadMapService.java @@ -26,7 +26,7 @@ public KeywordsResponse findAllKeywordsWithProgress(final Long curriculumId, fin final Map totalQuizCounts = getTotalQuizCounts(); final Map answeredQuizCounts = getAnsweredQuizCounts(memberId); - final KeywordsResponse keywordsResponse = KeywordsResponse.of(keywords); + final KeywordsResponse keywordsResponse = KeywordsResponse.from(keywords); keywordsResponse.setProgress(totalQuizCounts, answeredQuizCounts); return keywordsResponse; diff --git a/backend/src/main/java/wooteco/prolog/roadmap/application/dto/KeywordsResponse.java b/backend/src/main/java/wooteco/prolog/roadmap/application/dto/KeywordsResponse.java index 46e8952ed..f4f602c00 100644 --- a/backend/src/main/java/wooteco/prolog/roadmap/application/dto/KeywordsResponse.java +++ b/backend/src/main/java/wooteco/prolog/roadmap/application/dto/KeywordsResponse.java @@ -19,7 +19,7 @@ public KeywordsResponse(final List data) { this.data = data; } - public static KeywordsResponse of(final List keywords) { + public static KeywordsResponse from(final List keywords) { final List keywordsResponse = keywords.stream() .filter(Keyword::isRoot) .map(KeywordResponse::createWithAllChildResponse)