From 21e5ecda5a5ad2a6f26b4bb011c61045efcbe22a Mon Sep 17 00:00:00 2001 From: LeeHanEum Date: Wed, 21 Aug 2024 13:45:59 +0900 Subject: [PATCH] =?UTF-8?q?[SAMBAD-273]-refactor:=20validate=20=EA=B4=80?= =?UTF-8?q?=EB=A0=A8=20=EB=A6=AC=EB=B7=B0=20=EB=B0=98=EC=98=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../meeting/handwaving/application/HandwavingService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 e30b9d89..1bee94ed 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 @@ -27,8 +27,8 @@ public class HandwavingService { public void sendHandWaving(Long userId, Long meetingId, HandwavingRequest request) { MeetingMember sender = meetingMemberService.getByUserIdAndMeetingId(userId, meetingId); + meetingMemberValidator.validateMemberIsMemberOfMeeting(request.receiverMemberId(), meetingId); MeetingMember receiver = meetingMemberService.getById(request.receiverMemberId()); - meetingMemberValidator.validateUserIsMemberOfMeeting(receiver.getUser().getId(), meetingId); Handwaving handWaving = Handwaving.send(sender, receiver); handWavingRepository.save(handWaving);