Skip to content

Commit

Permalink
fix: 참여자 목록이 복사되는 버그 해결 (#228)
Browse files Browse the repository at this point in the history
  • Loading branch information
ymkim97 authored Dec 2, 2023
1 parent 96ccb1b commit a78b82f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,14 +113,6 @@ public Certification findCertification(Long certificationId) {
.orElseThrow(() -> new NotFoundException(CERTIFICATION_NOT_FOUND));
}

public List<Certification> findCertifications(List<Routine> routines) {
return certificationsSearchRepository.findCertificationsByRoutines(routines);
}

public void deleteCertifications(List<Certification> certifications) {
certificationRepository.deleteAll(certifications);
}

private void validateCertifyTime(LocalDateTime now, int certifyTime) {
LocalTime targetTime = LocalTime.of(certifyTime, 0);
LocalDateTime targetDateTime = LocalDateTime.of(now.toLocalDate(), targetTime);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ private List<TodayCertificateRankResponse> getTodayCertificateRankResponses(Long
List<Participant> participants = participantSearchRepository.findAllParticipantsByRoomId(roomId);
List<Member> members = memberService.getRoomMembers(participants.stream()
.map(Participant::getMemberId)
.distinct()
.toList());

List<Long> knocks = notificationService.getMyKnockStatusInRoom(memberId, roomId, participants);
Expand Down

0 comments on commit a78b82f

Please sign in to comment.