fix: Hotfix/ Dynamic Group Booking Links not working in new booker (#9685)

* Debuglogs

* Derive group usernames correctly

* Revert "Debuglogs"

This reverts commit d93f031589b34bb7fee32a34f96eb89805c20275.
This commit is contained in:
Hariom Balhara authored and GitHub committed 2023-06-21 15:22:13 +01:00
1 parent 4748641c22
commit 3c3db0b3a6
2 files changed
+4 -4

No files matched your search

@@ -7,7 +7,7 @@ import { getAppFromSlug } from "@calcom/app-store/utils";
import { getBookingFieldsWithSystemFields } from "@calcom/features/bookings/lib/getBookingFields";
import { isRecurringEvent, parseRecurringEvent } from "@calcom/lib";
import { WEBAPP_URL } from "@calcom/lib/constants";
import { getDefaultEvent } from "@calcom/lib/defaultEvents";
import { getDefaultEvent, getUsernameList } from "@calcom/lib/defaultEvents";
import { markdownToSafeHTML } from "@calcom/lib/markdownToSafeHTML";
import type { PrismaClient } from "@calcom/prisma/client";
import type { BookerLayoutSettings } from "@calcom/prisma/zod-utils";
@@ -84,7 +84,7 @@ export const getPublicEvent = async (
isTeamEvent: boolean | undefined,
prisma: PrismaClient
) => {
const usernameList = username.split("+");
const usernameList = getUsernameList(username);
// In case of dynamic group event, we fetch user's data and use the default event.
if (usernameList.length > 1) {