RoundRobin Booking Error in a particular case (#2471)
* users can be array of user when roundrobin team booking is there with availablity of multiple people * Return empty array * Add comments * checktype fix * removed extra condition Co-authored-by: Syed Ali Shahbaz <[email protected]>
This commit is contained in:
1 parent
9d86039987
commit
75c2ccff96
2 files changed
+24
-10
No files matched your search
@@ -223,7 +223,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
|
||||
const reqBody = req.body as BookingCreateBody;
|
||||
|
||||
// handle dynamic user
|
||||
const dynamicUserList = getUsernameList(reqBody.user as string);
|
||||
const dynamicUserList = getUsernameList(reqBody?.user);
|
||||
const eventTypeSlug = reqBody.eventTypeSlug;
|
||||
const eventTypeId = reqBody.eventTypeId;
|
||||
const tAttendees = await getTranslation(reqBody.language ?? "en", "common");
|
||||
|
||||
Reference in new issue
Block a user