From 9844cf92a87949360b4f596e06eaa539404eccaa Mon Sep 17 00:00:00 2001 From: Bailey Pumfleet Date: Tue, 24 Aug 2021 22:44:29 +0100 Subject: [PATCH] Temporarily disable checking video busy times --- pages/api/availability/[user].ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pages/api/availability/[user].ts b/pages/api/availability/[user].ts index 2d1c87ca51..d3aa845ed1 100644 --- a/pages/api/availability/[user].ts +++ b/pages/api/availability/[user].ts @@ -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(),