From 6b636c3ad54f93cf7d76e8e65a43a877e96eb545 Mon Sep 17 00:00:00 2001 From: seokjin8678 Date: Fri, 12 Apr 2024 15:45:57 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EA=B3=B5=EC=97=B0=20=EC=82=AD=EC=A0=9C?= =?UTF-8?q?=20=EB=A9=94=EC=84=9C=EB=93=9C=20=EC=88=9C=EC=84=9C=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD=ED=95=98=EC=97=AC=20=EC=99=B8=EB=9E=98=ED=82=A4=20?= =?UTF-8?q?=EC=A0=9C=EC=95=BD=20=EC=97=90=EB=9F=AC=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../festago/stage/application/command/StageDeleteService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/main/java/com/festago/stage/application/command/StageDeleteService.java b/backend/src/main/java/com/festago/stage/application/command/StageDeleteService.java index 903d21a85..73149505c 100644 --- a/backend/src/main/java/com/festago/stage/application/command/StageDeleteService.java +++ b/backend/src/main/java/com/festago/stage/application/command/StageDeleteService.java @@ -19,8 +19,8 @@ public class StageDeleteService { public void deleteStage(Long stageId) { stageRepository.findByIdWithFetch(stageId).ifPresent(stage -> { - stageRepository.deleteById(stageId); stageArtistRepository.deleteByStageId(stageId); + stageRepository.deleteById(stageId); eventPublisher.publishEvent(new StageDeletedEvent(stage)); }); }