diff --git a/apps/api/v1/lib/validations/event-type.ts b/apps/api/v1/lib/validations/event-type.ts index f874ac143d..579f514f04 100644 --- a/apps/api/v1/lib/validations/event-type.ts +++ b/apps/api/v1/lib/validations/event-type.ts @@ -168,6 +168,7 @@ export const schemaEventTypeReadPublic = EventType.pick({ metadata: jsonSchema.nullable(), customInputs: customInputSchema.array().optional(), link: z.string().optional(), + hashedLink: z.object({ link: z.string() }).optional().nullable(), bookingFields: eventTypeBookingFields.optional().nullable(), }) ); diff --git a/apps/api/v1/pages/api/event-types/[id]/_get.ts b/apps/api/v1/pages/api/event-types/[id]/_get.ts index a4e4bad3ac..af70bffe17 100644 --- a/apps/api/v1/pages/api/event-types/[id]/_get.ts +++ b/apps/api/v1/pages/api/event-types/[id]/_get.ts @@ -51,6 +51,7 @@ export async function getHandler(req: NextApiRequest) { where: { id }, include: { customInputs: true, + hashedLink: { select: { link: true } }, team: { select: { slug: true } }, hosts: { select: { userId: true, isFixed: true } }, owner: { select: { username: true, id: true } }, diff --git a/apps/api/v1/pages/api/event-types/_get.ts b/apps/api/v1/pages/api/event-types/_get.ts index e3160da894..07d80d3201 100644 --- a/apps/api/v1/pages/api/event-types/_get.ts +++ b/apps/api/v1/pages/api/event-types/_get.ts @@ -56,6 +56,7 @@ async function getHandler(req: NextApiRequest) { }, include: { customInputs: true, + hashedLink: { select: { link: true } }, team: { select: { slug: true } }, hosts: { select: { userId: true, isFixed: true } }, owner: { select: { username: true, id: true } },