Temporarily disable checking video busy times

pull/520/head^2
Bailey Pumfleet 2021-08-24 22:44:29 +01:00
parent 47d28756b6
commit 9844cf92a8
1 changed files with 6 additions and 6 deletions

View File

@ -31,12 +31,12 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
req.query.dateTo,
selectedCalendars
);
const videoBusyTimes = await getBusyVideoTimes(
currentUser.credentials,
req.query.dateFrom,
req.query.dateTo
);
calendarBusyTimes.push(...videoBusyTimes);
// const videoBusyTimes = await getBusyVideoTimes(
// currentUser.credentials,
// req.query.dateFrom,
// req.query.dateTo
// );
// calendarBusyTimes.push(...videoBusyTimes);
const bufferedBusyTimes = calendarBusyTimes.map((a) => ({
start: dayjs(a.start).subtract(currentUser.bufferTime, "minute").toString(),