From 20d6b01a17d7ca05fa8e858e01d91b9abe0e865a Mon Sep 17 00:00:00 2001 From: SewoongPark Date: Sun, 11 Aug 2024 16:22:12 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B0=9B=EC=9D=80=20=ED=8F=89=EA=B0=80=20api?= =?UTF-8?q?=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mssaembackendv2/domain/evaluation/EvaluationService.java | 2 +- .../example/mssaembackendv2/domain/member/MemberService.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/example/mssaembackendv2/domain/evaluation/EvaluationService.java b/src/main/java/com/example/mssaembackendv2/domain/evaluation/EvaluationService.java index e63374f..c7a8149 100644 --- a/src/main/java/com/example/mssaembackendv2/domain/evaluation/EvaluationService.java +++ b/src/main/java/com/example/mssaembackendv2/domain/evaluation/EvaluationService.java @@ -87,7 +87,7 @@ public String insertEvaluation(Member member, EvaluationInfo evaluationInfo) { * Badge 추가 및 알림 추가 */ public void insertBadgeAndNotification(Member partner) { - EvaluationCount evaluationCount = countEvaluation(partner); + EvaluationCount evaluationCount = countEvaluation(partner.getId()); boolean check = true; if (badgeService.existBadgeStateTrue(partner)) { check = false; diff --git a/src/main/java/com/example/mssaembackendv2/domain/member/MemberService.java b/src/main/java/com/example/mssaembackendv2/domain/member/MemberService.java index e9fbf78..b349e7d 100644 --- a/src/main/java/com/example/mssaembackendv2/domain/member/MemberService.java +++ b/src/main/java/com/example/mssaembackendv2/domain/member/MemberService.java @@ -157,7 +157,7 @@ public MemberProfileInfo getProfile(Long memberId) { return MemberProfileInfo.builder() .teacherInfo(new TeacherInfo(member)) .badgeInfos(badgeService.findAllBadge(member)) - .evaluationCount(evaluationService.countEvaluation(member)) + .evaluationCount(evaluationService.countEvaluation(memberId)) .boardHistory(boardService.getBoardHistory(member)) .discussionHistory(discussionService.getDiscussionHistory(member)) .worryBoardHistory(worryBoardService.getWorryBoardHistory(member))