* Create event repository * Use repository in event.handler * fix type check * migrate org/instant-meeting * add export default * fix metadata * move getServerSideProps from @server/lib to @lib * fix * fix * revert unneeded changes --------- Co-authored-by: Udit Takkar <53316345+Udit-takkar@users.noreply.github.com>
19 lines
515 B
TypeScript
19 lines
515 B
TypeScript
import { getPublicEvent } from "@calcom/features/eventtypes/lib/getPublicEvent";
|
|
import prisma from "@calcom/prisma";
|
|
|
|
import type { TEventInputSchema } from "../../../trpc/server/routers/publicViewer/event.schema";
|
|
|
|
export class EventRepository {
|
|
static async getPublicEvent(input: TEventInputSchema) {
|
|
const event = await getPublicEvent(
|
|
input.username,
|
|
input.eventSlug,
|
|
input.isTeamEvent,
|
|
input.org,
|
|
prisma,
|
|
input.fromRedirectOfNonOrgLink
|
|
);
|
|
return event;
|
|
}
|
|
}
|