2023-04-25 22:39:47 +00:00
|
|
|
import type { TGetScheduleInputSchema } from "./getSchedule.schema";
|
2023-08-07 14:00:01 +00:00
|
|
|
import { getAvailableSlots } from "./util";
|
2023-04-25 22:39:47 +00:00
|
|
|
|
|
|
|
type GetScheduleOptions = {
|
|
|
|
ctx: Record<string, unknown>;
|
|
|
|
input: TGetScheduleInputSchema;
|
|
|
|
};
|
|
|
|
|
|
|
|
export const getScheduleHandler = async ({ input }: GetScheduleOptions) => {
|
2023-08-07 14:00:01 +00:00
|
|
|
return await getAvailableSlots(input);
|
2023-04-25 22:39:47 +00:00
|
|
|
};
|