Files
calendar/packages/trpc/server/routers/viewer/slots/getSchedule.handler.ts
T
Nischal GautamandGitHub 4d9047974e chore: Renamed getSchedule to getAvailableSlots (#10626)
* refactor: renamed getScheldude to getAvailableSlots

* fix ts error

* romoved comment
2023-08-07 15:00:01 +01:00

12 lines
333 B
TypeScript

import type { TGetScheduleInputSchema } from "./getSchedule.schema";
import { getAvailableSlots } from "./util";
type GetScheduleOptions = {
ctx: Record<string, unknown>;
input: TGetScheduleInputSchema;
};
export const getScheduleHandler = async ({ input }: GetScheduleOptions) => {
return await getAvailableSlots(input);
};