Skip to content

Commit 7f9f20d

Browse files
committed
[TNT-162] refactor: 클래스 트랜잭션 제거
1 parent bb2290a commit 7f9f20d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/main/java/com/tnt/application/member/MemberService.java

+1-3
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
import lombok.RequiredArgsConstructor;
1616

1717
@Service
18-
@Transactional(readOnly = true)
1918
@RequiredArgsConstructor
2019
public class MemberService {
2120

@@ -25,8 +24,7 @@ public Member getMemberWithMemberId(Long memberId) {
2524
return memberRepository.findByIdAndDeletedAtIsNull(memberId)
2625
.orElseThrow(() -> new NotFoundException(MEMBER_NOT_FOUND));
2726
}
28-
29-
@Transactional(noRollbackFor = NotFoundException.class)
27+
3028
public Member getMemberWithSocialIdAndSocialType(String socialId, SocialType socialType) {
3129
return memberRepository.findBySocialIdAndSocialTypeAndDeletedAtIsNull(socialId, socialType)
3230
.orElseThrow(() -> new NotFoundException(MEMBER_NOT_FOUND));

0 commit comments

Comments
 (0)