cal.pub0.org/packages/trpc/server/routers/viewer/slots/getSchedule.handler.ts

12 lines
321 B
TypeScript

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