2
0
Files

16 lines
437 B
TypeScript
Raw Permalink Normal View History

2024-08-09 00:39:27 +02:00
import { getUserAvailability } from "@calcom/core/getUserAvailability";
import type { TrpcSessionUser } from "../../../trpc";
import type { TUserInputSchema } from "./user.schema";
type UserOptions = {
ctx: {
user: NonNullable<TrpcSessionUser>;
};
input: TUserInputSchema;
};
export const userHandler = async ({ input }: UserOptions) => {
return getUserAvailability({ returnDateOverrides: true, ...input }, undefined);
};