From a0ac9740c71beca09a13949369639f5062d56614 Mon Sep 17 00:00:00 2001 From: MinchoGreenT Date: Mon, 29 Jul 2024 23:40:54 +0900 Subject: [PATCH] =?UTF-8?q?[fix]=20=EC=A2=8B=EC=95=84=EC=9A=94=20=EC=B7=A8?= =?UTF-8?q?=EC=86=8C=20helper=20=EB=A9=94=EC=84=9C=EB=93=9C=20transactiona?= =?UTF-8?q?l=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../farmusspring/domain/farmclub/helper/MissionPostHelper.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/modernfarmer/farmusspring/domain/farmclub/helper/MissionPostHelper.java b/src/main/java/com/modernfarmer/farmusspring/domain/farmclub/helper/MissionPostHelper.java index 85d8cf75..820a0e8b 100644 --- a/src/main/java/com/modernfarmer/farmusspring/domain/farmclub/helper/MissionPostHelper.java +++ b/src/main/java/com/modernfarmer/farmusspring/domain/farmclub/helper/MissionPostHelper.java @@ -7,6 +7,7 @@ import com.modernfarmer.farmusspring.domain.history.vo.MissionPostHistoryVo; import lombok.RequiredArgsConstructor; import org.springframework.stereotype.Component; +import org.springframework.transaction.annotation.Transactional; import java.util.List; @@ -25,6 +26,7 @@ public List getMissionPostHistory(Long userFarmClubId) { return missionPostRepository.getMissionPostHistory(userFarmClubId); } + @Transactional public void deleteMissionPostLike(Long userId, Long missionPostId) { missionPostRepository.deleteMissionPostLike(userId, missionPostId); }