Skip to content

Commit

Permalink
Merge pull request #202 from OutDecision/issue/168
Browse files Browse the repository at this point in the history
🎨 [UPDATE]: 게시글 수정-사진 삭제 수정
  • Loading branch information
sye1101 authored May 25, 2024
2 parents b6491c5 + b2adc9f commit 113e90b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ public boolean updatePost(Long postId, UploadPostDTO request, List<String> optio
for (String originImageUrl : originOptionImgList) {
boolean existsInOptionsList = optionsList.stream()
.anyMatch(option -> originImageUrl.equals(option.getPhotoUrl()));
if (!existsInOptionsList) {
if (!existsInOptionsList && originImageUrl != null && !originImageUrl.isEmpty()) {
s3Service.deleteImage(originImageUrl);
}
}
Expand Down

0 comments on commit 113e90b

Please sign in to comment.