From 0d5dd6463cd9b1ff8d721ae792b06a038d9e1f43 Mon Sep 17 00:00:00 2001 From: Donghun Won Date: Wed, 2 Oct 2024 15:42:59 +0900 Subject: [PATCH] =?UTF-8?q?Fix=20:=20=EC=9C=A0=EC=A0=80,=20=EC=9D=BC?= =?UTF-8?q?=EA=B8=B0=20=EC=9D=B4=EB=AF=B8=EC=A7=80=20=EC=9E=90=EB=8F=99?= =?UTF-8?q?=EC=82=AD=EC=A0=9C=20=EB=90=98=EC=A7=80=20=EC=95=8A=EA=B2=8C=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../solitour_backend/solitour/diary/service/DiaryService.java | 1 + .../solitour/user_image/service/UserImageService.java | 1 + 2 files changed, 2 insertions(+) diff --git a/src/main/java/solitour_backend/solitour/diary/service/DiaryService.java b/src/main/java/solitour_backend/solitour/diary/service/DiaryService.java index eb71af5..78c9775 100644 --- a/src/main/java/solitour_backend/solitour/diary/service/DiaryService.java +++ b/src/main/java/solitour_backend/solitour/diary/service/DiaryService.java @@ -103,6 +103,7 @@ private void updateDiary(Long diaryId, DiaryUpdateRequest request) { private void saveDiaryDayContent(Diary savedDiary, DiaryCreateRequest request) { for (DiaryDayRequest dayRequest : request.getDiaryDayRequests()) { + s3Uploader.markImagePermanent(dayRequest.getDiaryDayContentImages()); DiaryDayContent diaryDayContent = DiaryDayContent.builder() .diary(savedDiary) .content(dayRequest.getContent()) diff --git a/src/main/java/solitour_backend/solitour/user_image/service/UserImageService.java b/src/main/java/solitour_backend/solitour/user_image/service/UserImageService.java index 6f50992..4881516 100644 --- a/src/main/java/solitour_backend/solitour/user_image/service/UserImageService.java +++ b/src/main/java/solitour_backend/solitour/user_image/service/UserImageService.java @@ -32,6 +32,7 @@ public UserImage saveUserImage(String imageUrl) { public UserImageResponse updateUserProfile(Long userId, MultipartFile userImage) { String userImageUrl = s3Uploader.upload(userImage, IMAGE_PATH, userId); + s3Uploader.markImagePermanent(userImageUrl); return new UserImageResponse(userImageUrl); }