Skip to content

Commit

Permalink
[SAMBAD-273]-refactor: validate 관련 리뷰 반영
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeHanEum committed Aug 21, 2024
1 parent ba7c5e7 commit 21e5ecd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 21e5ecd

Please sign in to comment.