Skip to content

Commit 1539192

Browse files
committed
[Fix]: 댓글 생성 시 transactional readonly false
1 parent 8de7c48 commit 1539192

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

back/src/main/java/com/back/domain/comment/service/CommentService.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ public class CommentService {
3535
private final CommentRepository commentRepository;
3636
private final CommentLikeRepository commentLikeRepository;
3737

38+
@Transactional
3839
public CommentResponse createComment(User user, Long postId, CommentRequest request) {
3940
Post post = postRepository.findById(postId)
4041
.orElseThrow(() -> new ApiException(ErrorCode.POST_NOT_FOUND));

0 commit comments

Comments
 (0)