From 9d86039987d08c223fd9498917f5625e7dd94e85 Mon Sep 17 00:00:00 2001 From: Joe Au-Yeung <65426560+joeauyeung@users.noreply.github.com> Date: Tue, 12 Apr 2022 08:01:50 -0400 Subject: [PATCH] Remove to string, return dayjs object (#2464) --- apps/web/pages/api/availability/[user].ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/web/pages/api/availability/[user].ts b/apps/web/pages/api/availability/[user].ts index aa001df9..96ce33f5 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