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)