Skip to content

Commit

Permalink
[SAMBAD-309]-refactor: 손흔들기 수락 거절 시 이벤트 inactive
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeHanEum committed Aug 28, 2024
1 parent 5927f3b commit 9c39048
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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<HandWavingSummary> getHandWavingSummariesBy(List<Event> events) {
Expand Down

0 comments on commit 9c39048

Please sign in to comment.