Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import java.time.LocalDateTime;
import java.time.temporal.ChronoUnit;
import java.util.List;
import java.util.stream.Collectors;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
Expand Down Expand Up @@ -96,7 +97,7 @@ public PerformanceResponse createPerformance(Long memberId, PerformanceRequest r
performance
);
})
.toList();
.collect(Collectors.toList());

performance.assignScheduleNumbers(schedules);
scheduleRepository.saveAll(schedules);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import java.time.temporal.ChronoUnit;
import java.util.List;
import java.util.Objects;
import java.util.stream.Collectors;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
Expand Down Expand Up @@ -193,7 +194,7 @@ private List<ScheduleModifyResponse> processSchedules(List<ScheduleModifyRequest

return schedule;
})
.toList();
.collect(Collectors.toList());

performance.assignScheduleNumbers(schedules);

Expand Down