Skip to content

Commit

Permalink
[merge] Course Image 순서 변경 - #229
Browse files Browse the repository at this point in the history
[FIX] Course Image 순서 변경 - #229
  • Loading branch information
gardening-y authored Aug 28, 2024
2 parents 3953894 + e38b7c8 commit d833ef9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ public List<Image> saveImages(final List<MultipartFile> images, final Course cou
List<CompletableFuture<Image>> futureImages = images.stream()
.map(img -> CompletableFuture.supplyAsync(() -> {
try {
int count = sequence.getAndIncrement();
String imagePath = s3Service.uploadImage(path, img).get();
Image newImage = Image.create(
course,
cachePath + imagePath,
sequence.getAndIncrement());
System.out.println(sequence);
count);
return newImage;
} catch (IOException | ExecutionException | InterruptedException e) {
throw new BadRequestException(FailureCode.BAD_REQUEST);
Expand Down

0 comments on commit d833ef9

Please sign in to comment.