Skip to content

Commit

Permalink
fix: shop softDelete시에 reviews도 softdelete 되도록 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
krSeonghyeon committed Nov 28, 2024
1 parent 5888053 commit 02db99a
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -305,9 +305,11 @@ public void updateOwner(Owner owner) {

public void delete() {
this.isDeleted = true;
reviews.forEach(ShopReview::deleteReview);
}

public void cancelDelete() {
this.isDeleted = false;
reviews.forEach(ShopReview::cancelReview);
}
}

0 comments on commit 02db99a

Please sign in to comment.