Skip to content

Commit

Permalink
fix : 총 관심 정책, 수혜 정책 삭제 API 에서 @transactional 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
LHS-11 committed Jan 4, 2024
1 parent e69d441 commit 9e2f5b1
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,12 @@ public void deleteApplyPolicy(User user, Long policyId) {

}

@Transactional
public void deleteAllInterestPolicy(User user) {
userPolicyRepository.deleteAllByUserAndInterestFlag(user, true);
}

@Transactional
public void deleteAllApplyPolicy(User user) {
userPolicyRepository.deleteAllByUserAndApplyFlag(user, true);
}
Expand Down

0 comments on commit 9e2f5b1

Please sign in to comment.