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, 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(),