Skip to content
Snippets Groups Projects
Commit e6f4ff17 authored by Wo-ogie's avatar Wo-ogie
Browse files

refactor: 참가자 생성 가능 여부를 판단할 때 미팅의 maxParticipants가 null인 경우에 대한 예외처리 추가

parent e24736b7
Branches
No related tags found
No related merge requests found
......@@ -75,7 +75,10 @@ exports.createParticipant = async (req, res, next) => {
const meeting = await getMeetingById(meetingId);
const currentParticipants =
await getNumOfParticipantsByMeetingId(meetingId);
if (currentParticipants >= meeting.maxParticipants) {
if (
meeting.maxParticipants &&
currentParticipants >= meeting.maxParticipants
) {
throw createMaxParticipantsError();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment