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);