Skip to content

Commit

Permalink
[fix] 좋아요 취소 helper 메서드 transactional 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
MinchoGreenT committed Jul 29, 2024
1 parent d58c4ba commit a0ac974
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -25,6 +26,7 @@ public List<MissionPostHistoryVo> getMissionPostHistory(Long userFarmClubId) {
return missionPostRepository.getMissionPostHistory(userFarmClubId);
}

@Transactional
public void deleteMissionPostLike(Long userId, Long missionPostId) {
missionPostRepository.deleteMissionPostLike(userId, missionPostId);
}
Expand Down

0 comments on commit a0ac974

Please sign in to comment.