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
This commit is contained in:
Anik Dhabal Babu authored and GitHub committed 2024-11-11 19:55:42 +05:30
1 parent 30f9d9b980
commit ae9063804d
5 files changed
+36 -8

No files matched your search

+3 -2
View File
@@ -3,14 +3,15 @@ import prisma from "@calcom/prisma";
import type { TEventInputSchema } from "@calcom/trpc/server/routers/publicViewer/event.schema";
export class EventRepository {
static async getPublicEvent(input: TEventInputSchema) {
static async getPublicEvent(input: TEventInputSchema, userId?: number) {
const event = await getPublicEvent(
input.username,
input.eventSlug,
input.isTeamEvent,
input.org,
prisma,
input.fromRedirectOfNonOrgLink
input.fromRedirectOfNonOrgLink,
userId
);
return event;
}