Skip to content

Commit

Permalink
fix: 공동모임장이 실제 모임 객체 참조하도록 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
mikekks committed Oct 31, 2024
1 parent e15f8d8 commit acb3e8c
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -319,12 +319,11 @@ public void updateMeeting(Integer meetingId, MeetingV2CreateMeetingBodyDto reque
Meeting meeting = meetingRepository.findByIdOrThrow(meetingId);
meeting.validateMeetingCreator(userId);

updateCoLeaders(requestBody.getCoLeaderUserIds(), meeting);

Meeting updatedMeeting = meetingMapper.toMeetingEntity(requestBody,
createTargetActiveGeneration(requestBody.getCanJoinOnlyActiveGeneration()), ACTIVE_GENERATION, user,
user.getId());

updateCoLeaders(requestBody.getCoLeaderUserIds(), updatedMeeting);

meeting.updateMeeting(updatedMeeting);
}

Expand Down

0 comments on commit acb3e8c

Please sign in to comment.