Remove to string, return dayjs object (#2464)
This commit is contained in:
parent
cde131a351
commit
9d86039987
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue