Skip to content

Commit

Permalink
[feat] #71 등록되지 않은 스크랩 삭제시 예외 로직 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
RyuKwanKon committed Apr 1, 2024
1 parent ead2951 commit f43f6f1
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ public void creatScrapPost(Long userId, ScrapRequestDto scrapRequestDto) {
}

public void deleteScrapPost(Long userId, Long postId) {
validateExistScrap(postId, userId);
scrapRepository.deleteByPostIdAndUserId(postId, userId);
}

Expand Down

0 comments on commit f43f6f1

Please sign in to comment.