Temporarily disable checking video busy times
parent
47d28756b6
commit
9844cf92a8
|
@ -31,12 +31,12 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
|
||||||
req.query.dateTo,
|
req.query.dateTo,
|
||||||
selectedCalendars
|
selectedCalendars
|
||||||
);
|
);
|
||||||
const videoBusyTimes = await getBusyVideoTimes(
|
// const videoBusyTimes = await getBusyVideoTimes(
|
||||||
currentUser.credentials,
|
// currentUser.credentials,
|
||||||
req.query.dateFrom,
|
// req.query.dateFrom,
|
||||||
req.query.dateTo
|
// req.query.dateTo
|
||||||
);
|
// );
|
||||||
calendarBusyTimes.push(...videoBusyTimes);
|
// calendarBusyTimes.push(...videoBusyTimes);
|
||||||
|
|
||||||
const bufferedBusyTimes = calendarBusyTimes.map((a) => ({
|
const bufferedBusyTimes = calendarBusyTimes.map((a) => ({
|
||||||
start: dayjs(a.start).subtract(currentUser.bufferTime, "minute").toString(),
|
start: dayjs(a.start).subtract(currentUser.bufferTime, "minute").toString(),
|
||||||
|
|
Loading…
Reference in New Issue