Fixed merge conflict errors

perf/get-slots
Keith Williams 2023-08-08 16:37:31 +01:00
parent 3d7863217b
commit 88ab297b8f
1 changed files with 0 additions and 13 deletions

View File

@ -261,19 +261,6 @@ export async function getAvailableSlots(input: TGetScheduleInputSchema) {
})
);
// flattens availability of multiple users
const dateOverrides = userAvailability.flatMap((availability) =>
availability.dateOverrides.map((override) => ({ userId: availability.user.id, ...override }))
);
const getAggregateWorkingHoursSpan = tracer.startSpan(
"getAggregateWorkingHours",
undefined,
context.active()
);
const workingHours = getAggregateWorkingHours(userAvailability, eventType.schedulingType);
getAggregateWorkingHoursSpan.end();
const availabilityCheckProps = {
eventLength: input.duration || eventType.length,
currentSeats,