Skip to content

Commit

Permalink
🐛 Fix Scrap
Browse files Browse the repository at this point in the history
Related:
  • Loading branch information
L-U-Ready committed Nov 28, 2024
1 parent 5b44cdc commit cc424d0
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,10 @@ public String unScrapArticle() {

scrapRepository.deleteAll(scraps);

articleRepository.updateScrappedStatusToFalse(originalArticleIds);
for (Long originalArticleId : originalArticleIds) {
Article article = findArticleById(originalArticleId);
article.setScrapStatus(false);
}

return "스크랩 취소 완료";

Expand Down

0 comments on commit cc424d0

Please sign in to comment.