Files
calendar/packages/trpc/server/routers/publicViewer/event.handler.ts
T
Anik Dhabal BabuandGitHub ae9063804d fix: Users details leak for team booking when the team is private (#17403)
* fix: host details leaking

* type error

* update

* update

* Update getPublicEvent.ts

* Update getPublicEvent.ts
2024-11-11 19:55:42 +05:30

15 lines
387 B
TypeScript

import { EventRepository } from "@calcom/lib/server/repository/event";
import type { TEventInputSchema } from "./event.schema";
interface EventHandlerOptions {
input: TEventInputSchema;
userId?: number;
}
export const eventHandler = async ({ input, userId }: EventHandlerOptions) => {
return await EventRepository.getPublicEvent(input, userId);
};
export default eventHandler;