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 f1d5540..9ea76c9 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 @@ -49,6 +49,12 @@ public void deleteMissionPostLike(Long userId, Long missionPostId) { missionPostRepository.deleteMissionPostLike(userId, missionPostId); } + public void deleteMissionPost(MissionPost missionPost){ + missionPostRepository.delete(missionPost); + } + public void deleteMissionPostComment(MissionPostComment missionPostComment){ + missionPostCommentRepository.delete(missionPostComment); + } public void deleteMissionPostComments(Long userId){ missionPostRepository.deleteMissionPostComments(userId); }