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:
Hariom BalharaandSyed Ali Shahbaz authored and GitHub committed 2022-04-12 10:10:18 -07:00
1 parent 9d86039987
commit 75c2ccff96
2 files changed
+24 -10

No files matched your search

+1 -1
View File
@@ -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");