From 9c390481bc1409f17d619f175bfa4f42921d8ad5 Mon Sep 17 00:00:00 2001 From: LeeHanEum Date: Wed, 28 Aug 2024 15:12:34 +0900 Subject: [PATCH] =?UTF-8?q?[SAMBAD-309]-refactor:=20=EC=86=90=ED=9D=94?= =?UTF-8?q?=EB=93=A4=EA=B8=B0=20=EC=88=98=EB=9D=BD=20=EA=B1=B0=EC=A0=88=20?= =?UTF-8?q?=EC=8B=9C=20=EC=9D=B4=EB=B2=A4=ED=8A=B8=20inactive?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../meeting/handwaving/application/HandWavingService.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/org/depromeet/sambad/moring/meeting/handwaving/application/HandWavingService.java b/src/main/java/org/depromeet/sambad/moring/meeting/handwaving/application/HandWavingService.java index 045c0b22..413ff323 100644 --- a/src/main/java/org/depromeet/sambad/moring/meeting/handwaving/application/HandWavingService.java +++ b/src/main/java/org/depromeet/sambad/moring/meeting/handwaving/application/HandWavingService.java @@ -56,6 +56,7 @@ public void acceptHandWaving(Long userId, Long meetingId, Long handWavingId) { HandWaving handWaving = getHandWavingById(handWavingId); handWaving.validateIsReceiver(userId); handWaving.accept(); + eventService.inactivateLastEventByType(userId, meetingId, HAND_WAVING_REQUESTED); } @Transactional @@ -64,6 +65,7 @@ public void ignoreHandWaving(Long userId, Long meetingId, Long handWavingId) { HandWaving handWaving = getHandWavingById(handWavingId); handWaving.validateIsReceiver(userId); handWaving.reject(); + eventService.inactivateLastEventByType(userId, meetingId, HAND_WAVING_REQUESTED); } public List getHandWavingSummariesBy(List events) {