Skip to content

Commit

Permalink
Merge branch 'hotfix/20240802-1'
Browse files Browse the repository at this point in the history
  • Loading branch information
dragontaek-lee committed Aug 1, 2024
2 parents 033f563 + 0f7d7f2 commit aaada8b
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,15 +150,15 @@ public WorkEditResponseDTO updateWork(Long userId, WorkEditRequestDTO request) {

val image = request.image();

if (work.isFirst()) {
val user = findUser(userId);
user.setWorkThumbNail(image);
}

if (!work.getPhotoUrl().equals(image)) {
val deletePhotoUrl = work.getPhotoUrl();
s3Service.deleteS3Image(deletePhotoUrl);
work.setPhotoUrl(image);

if (work.isFirst()) {
val user = findUser(userId);
user.setWorkThumbNail(image);
}
}

return WorkEditResponseDTO.of(workId);
Expand Down

0 comments on commit aaada8b

Please sign in to comment.