Skip to content

Commit

Permalink
[Fix] 트랜잭션 추가 #149
Browse files Browse the repository at this point in the history
  • Loading branch information
NARUBROWN committed Sep 26, 2024
1 parent 72b8151 commit b908162
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import me.snaptime.user.repository.UserRepository;
import me.snaptime.util.EncryptionUtil;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.multipart.MultipartFile;

import javax.crypto.SecretKey;
Expand Down Expand Up @@ -220,6 +221,7 @@ public byte[] downloadPhotoFromFileSystem(String fileName, String userEmail, boo
return photoData;
}

@Transactional
@Override
public void relocateSnap(Long snapId, Long albumId, String userEmail) {
Snap foundSnap = snapRepository.findById(snapId).orElseThrow(() -> new CustomException(ExceptionCode.SNAP_NOT_EXIST));
Expand Down

0 comments on commit b908162

Please sign in to comment.