Skip to content

Commit

Permalink
FIX:: dailyagenda 예외처리 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
minwoo1999 committed Jul 6, 2024
1 parent 921d898 commit 6560d4a
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -219,10 +219,10 @@ public List<ReadDetailDailyAgendaResponseDto> bulkUpdateDailyAgendaByPagingId(Li
List<DailyAgenda> dailyAgendaList = dailyAgendaRepository.findByMemberIdAndCreatedAtBetween(currentUserId, startOfDay, endOfDay);

// 현재 유저가 소유한 아젠다가 아닌 경우 예외 처리
dailyAgendaList.stream().filter(agenda -> !agenda.getMember().getId().equals(currentUserId))
.forEach(agenda -> {
throw new UnAuthorizedException("유저가 소유한 아젠다가 아닙니다.");
});
// dailyAgendaList.stream().filter(agenda -> !agenda.getMember().getId().equals(currentUserId))
// .forEach(agenda -> {
// throw new UnAuthorizedException("유저가 소유한 아젠다가 아닙니다.");
// });

// 아젠다 아이디로 아젠다를 찾아 pagingId를 업데이트
for (UpdateDailyAgendaListRequestDto updateDailyAgendaRequestDtos : updateDailyAgendaListRequestDtoList) {
Expand Down

0 comments on commit 6560d4a

Please sign in to comment.