Skip to content

Commit

Permalink
Merge pull request #183 from TeamDon-tBe/feat/#182
Browse files Browse the repository at this point in the history
[FEAT] 계정삭제api에 soft delete 재적용
  • Loading branch information
bo-ram-bo-ram authored Apr 22, 2024
2 parents 26433c2 + a536257 commit 8390d89
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ public void deleteComment(Long memberId, Long commentId) {
notificationRepository.deleteByNotificationTriggerTypeAndNotificationTriggerId("comment",commentId);
notificationRepository.deleteByNotificationTriggerTypeAndNotificationTriggerId("commentGhost", commentId);

//Comment deleteComment = commentRepository.findCommentByIdOrThrow(commentId);
//deleteComment.softDelete();
commentRepository.deleteById(commentId);
Comment deleteComment = commentRepository.findCommentByIdOrThrow(commentId);
deleteComment.softDelete();


}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ public void deleteContent(Long memberId, Long contentId) {
notificationRepository.deleteByNotificationTriggerTypeAndNotificationTriggerId("commentGhost",comment.getId());
notificationRepository.deleteByNotificationTriggerTypeAndNotificationTriggerId("comment", comment.getId());

//comment.softDelete();
comment.softDelete();
}
notificationRepository.deleteByNotificationTriggerTypeAndNotificationTriggerId("contentLiked",contentId);
notificationRepository.deleteByNotificationTriggerTypeAndNotificationTriggerId("contentGhost",contentId);

//Content deleteContent = contentRepository.findContentByIdOrThrow(contentId);
//deleteContent.softDelete();
Content deleteContent = contentRepository.findContentByIdOrThrow(contentId);
deleteContent.softDelete();
contentRepository.deleteById(contentId);
}

Expand Down

0 comments on commit 8390d89

Please sign in to comment.