diff --git a/src/main/java/com/gdschongik/gdsc/domain/study/application/MentorStudyDetailService.java b/src/main/java/com/gdschongik/gdsc/domain/study/application/MentorStudyDetailService.java index 3a26d7fa1..e9a433f5c 100644 --- a/src/main/java/com/gdschongik/gdsc/domain/study/application/MentorStudyDetailService.java +++ b/src/main/java/com/gdschongik/gdsc/domain/study/application/MentorStudyDetailService.java @@ -134,7 +134,7 @@ public StudyStatisticsResponse getStudyStatistics(Long studyId) { long totalStudentCount = studyHistories.size(); long studyCompletedStudentCount = - studyHistories.stream().filter(StudyHistory::isComplete).count(); + studyHistories.stream().filter(StudyHistory::isCompleted).count(); List studyWeekStatisticsResponses = studyDetails.stream() .map((studyDetail -> calculateWeekStatistics(studyDetail, totalStudentCount))) diff --git a/src/main/java/com/gdschongik/gdsc/domain/study/domain/StudyHistory.java b/src/main/java/com/gdschongik/gdsc/domain/study/domain/StudyHistory.java index 32ba36965..9ac737f9d 100644 --- a/src/main/java/com/gdschongik/gdsc/domain/study/domain/StudyHistory.java +++ b/src/main/java/com/gdschongik/gdsc/domain/study/domain/StudyHistory.java @@ -83,7 +83,7 @@ public boolean isWithinApplicationAndCourse() { return study.isWithinApplicationAndCourse(); } - public boolean isComplete() { + public boolean isCompleted() { return studyHistoryStatus == COMPLETED; } }