From a78b82f7cb92321ac21d62d6c98ef2a07e252904 Mon Sep 17 00:00:00 2001 From: Youngmyung Kim <83266154+ymkim97@users.noreply.github.com> Date: Sun, 3 Dec 2023 00:45:37 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=B0=B8=EC=97=AC=EC=9E=90=20=EB=AA=A9?= =?UTF-8?q?=EB=A1=9D=EC=9D=B4=20=EB=B3=B5=EC=82=AC=EB=90=98=EB=8A=94=20?= =?UTF-8?q?=EB=B2=84=EA=B7=B8=20=ED=95=B4=EA=B2=B0=20(#228)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../moabam/api/application/room/CertificationService.java | 8 -------- .../com/moabam/api/application/room/SearchService.java | 1 + 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/src/main/java/com/moabam/api/application/room/CertificationService.java b/src/main/java/com/moabam/api/application/room/CertificationService.java index 6f024e6f..c34c7be5 100644 --- a/src/main/java/com/moabam/api/application/room/CertificationService.java +++ b/src/main/java/com/moabam/api/application/room/CertificationService.java @@ -113,14 +113,6 @@ public Certification findCertification(Long certificationId) { .orElseThrow(() -> new NotFoundException(CERTIFICATION_NOT_FOUND)); } - public List findCertifications(List routines) { - return certificationsSearchRepository.findCertificationsByRoutines(routines); - } - - public void deleteCertifications(List certifications) { - certificationRepository.deleteAll(certifications); - } - private void validateCertifyTime(LocalDateTime now, int certifyTime) { LocalTime targetTime = LocalTime.of(certifyTime, 0); LocalDateTime targetDateTime = LocalDateTime.of(now.toLocalDate(), targetTime); diff --git a/src/main/java/com/moabam/api/application/room/SearchService.java b/src/main/java/com/moabam/api/application/room/SearchService.java index aafb5bb9..8938dc76 100644 --- a/src/main/java/com/moabam/api/application/room/SearchService.java +++ b/src/main/java/com/moabam/api/application/room/SearchService.java @@ -263,6 +263,7 @@ private List getTodayCertificateRankResponses(Long List participants = participantSearchRepository.findAllParticipantsByRoomId(roomId); List members = memberService.getRoomMembers(participants.stream() .map(Participant::getMemberId) + .distinct() .toList()); List knocks = notificationService.getMyKnockStatusInRoom(memberId, roomId, participants);