From 02db99a374437794040fe15b894752186b327af4 Mon Sep 17 00:00:00 2001 From: krSeonghyeon Date: Thu, 28 Nov 2024 11:49:42 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20shop=20softDelete=EC=8B=9C=EC=97=90=20re?= =?UTF-8?q?views=EB=8F=84=20softdelete=20=EB=90=98=EB=8F=84=EB=A1=9D=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/in/koreatech/koin/domain/shop/model/shop/Shop.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/in/koreatech/koin/domain/shop/model/shop/Shop.java b/src/main/java/in/koreatech/koin/domain/shop/model/shop/Shop.java index 49e4bb99a..fdc2ca6bf 100644 --- a/src/main/java/in/koreatech/koin/domain/shop/model/shop/Shop.java +++ b/src/main/java/in/koreatech/koin/domain/shop/model/shop/Shop.java @@ -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); } }