From 9e2f5b1af92b012187451daea693f6d6d360649b Mon Sep 17 00:00:00 2001 From: LHS-11 Date: Fri, 5 Jan 2024 00:03:14 +0900 Subject: [PATCH] =?UTF-8?q?fix=20:=20=EC=B4=9D=20=EA=B4=80=EC=8B=AC=20?= =?UTF-8?q?=EC=A0=95=EC=B1=85,=20=EC=88=98=ED=98=9C=20=EC=A0=95=EC=B1=85?= =?UTF-8?q?=20=EC=82=AD=EC=A0=9C=20API=20=EC=97=90=EC=84=9C=20@Transaction?= =?UTF-8?q?al=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../domain/userpolicy/application/UserPolicyService.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/cmc/zenefitserver/domain/userpolicy/application/UserPolicyService.java b/src/main/java/com/cmc/zenefitserver/domain/userpolicy/application/UserPolicyService.java index e30a1d5..e3f5fb5 100644 --- a/src/main/java/com/cmc/zenefitserver/domain/userpolicy/application/UserPolicyService.java +++ b/src/main/java/com/cmc/zenefitserver/domain/userpolicy/application/UserPolicyService.java @@ -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); }