* fix: host details leaking * type error * update * update * Update getPublicEvent.ts * Update getPublicEvent.ts
15 lines
387 B
TypeScript
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;
|