diff --git a/src/main/java/org/gachon/checkmate/domain/scrap/service/ScrapService.java b/src/main/java/org/gachon/checkmate/domain/scrap/service/ScrapService.java index 8a1ba68..075e783 100644 --- a/src/main/java/org/gachon/checkmate/domain/scrap/service/ScrapService.java +++ b/src/main/java/org/gachon/checkmate/domain/scrap/service/ScrapService.java @@ -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); }