File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
apis/src/main/kotlin/org/yapp/apis/auth/service Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ package org.yapp.apis.auth.service
22
33import jakarta.validation.Valid
44import org.springframework.stereotype.Service
5+ import org.springframework.transaction.annotation.Propagation
56import org.springframework.transaction.annotation.Transactional
67import org.yapp.apis.user.dto.request.FindOrCreateUserRequest
78import org.yapp.apis.user.dto.response.CreateUserResponse
@@ -11,7 +12,7 @@ import org.yapp.apis.user.service.UserAccountService
1112class UserSignInService (
1213 private val userAccountService : UserAccountService ,
1314) {
14- @Transactional
15+ @Transactional(propagation = Propagation . REQUIRES_NEW )
1516 fun processSignIn (
1617 @Valid request : FindOrCreateUserRequest ,
1718 appleRefreshToken : String?
Original file line number Diff line number Diff line change 11package org.yapp.apis.auth.service
22
33import org.springframework.stereotype.Service
4+ import org.springframework.transaction.annotation.Propagation
45import org.springframework.transaction.annotation.Transactional
56import org.yapp.apis.user.service.UserAccountService
67import java.util.*
@@ -10,7 +11,7 @@ class UserWithdrawalService(
1011 private val userAccountService : UserAccountService ,
1112 private val refreshTokenService : RefreshTokenService
1213) {
13- @Transactional
14+ @Transactional(propagation = Propagation . REQUIRES_NEW )
1415 fun processWithdrawal (userId : UUID ) {
1516 userAccountService.withdrawUser(userId)
1617
You can’t perform that action at this time.
0 commit comments