Skip to content

Commit

Permalink
๐Ÿšจ [HOTFIX] create ์š”์ฒญ์— @transactional ์–ด๋…ธํ…Œ์ด์…˜ ๋‹ฌ์•„์ฃผ๊ธฐ
Browse files Browse the repository at this point in the history
  • Loading branch information
Jang99u committed Jan 24, 2025
1 parent f61a719 commit d6d1546
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 @@ -38,6 +38,7 @@ public class GalleryService {
private final GalleryRepository galleryRepository;
private final S3Config s3Config;

@Transactional
public GalleryEntity createGallery(
final MultipartFile image,
final String category,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ public class PostService {
private final RequestRepository requestRepository;
private final UserRetriever userRetriever;

@Transactional
public PostEntity createPostItem(final Long userId, final PostRequestDto postRequestDto) {
UserEntity userEntity = userRepository.findById(userId)
.orElseThrow(() -> BaseException.type(UserErrorCode.USER_NOT_FOUND));
Expand Down

0 comments on commit d6d1546

Please sign in to comment.