Skip to content

Scheduling infrastructure for absolutely everyone.

Remove to string, return dayjs object (#2464)

Joe Au-Yeung9d86039987d0
diff --git a/apps/web/pages/api/availability/[user].ts b/apps/web/pages/api/availability/[user].ts
index aa001df945b..96ce33f5efe 100644
--- a/apps/web/pages/api/availability/[user].ts
+++ b/apps/web/pages/api/availability/[user].ts
@@ -87,8 +87,8 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
// busyTimes.push(...await getBusyVideoTimes(currentUser.credentials, dateFrom.format(), dateTo.format()));
const bufferedBusyTimes = busyTimes.map((a) => ({
- start: dayjs(a.start).subtract(currentUser.bufferTime, "minute").toString(),
- end: dayjs(a.end).add(currentUser.bufferTime, "minute").toString(),
+ start: dayjs(a.start).subtract(currentUser.bufferTime, "minute"),
+ end: dayjs(a.end).add(currentUser.bufferTime, "minute"),
}));
const schedule = eventType?.schedule