Skip to content

Commit

Permalink
Fix : 유저, 일기 이미지 자동삭제 되지 않게 수정 (#217)
Browse files Browse the repository at this point in the history
  • Loading branch information
Astin01 authored Oct 2, 2024
1 parent 8492579 commit 66a7d3d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 66a7d3d

Please sign in to comment.