Fixing default event location URL for dynamic events (#8396)
* Set bookingLocaiton to URL if there is a default location * Update packages/features/bookings/lib/handleNewBooking.ts * Suggestions implmented * Remove old implemntation * Cleanuppull/8399/head
parent
33e394d5ed
commit
2ab597addc
|
@ -683,8 +683,7 @@ async function handler(
|
||||||
return aIndex - bIndex;
|
return aIndex - bIndex;
|
||||||
});
|
});
|
||||||
const firstUsersMetadata = userMetadataSchema.parse(users[0].metadata);
|
const firstUsersMetadata = userMetadataSchema.parse(users[0].metadata);
|
||||||
const app = getAppFromSlug(firstUsersMetadata?.defaultConferencingApp?.appSlug);
|
locationBodyString = firstUsersMetadata?.defaultConferencingApp?.appLink || locationBodyString;
|
||||||
locationBodyString = app?.appData?.location?.type || locationBodyString;
|
|
||||||
defaultLocationUrl = firstUsersMetadata?.defaultConferencingApp?.appLink;
|
defaultLocationUrl = firstUsersMetadata?.defaultConferencingApp?.appLink;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -840,6 +839,7 @@ async function handler(
|
||||||
|
|
||||||
const calEventUserFieldsResponses =
|
const calEventUserFieldsResponses =
|
||||||
"calEventUserFieldsResponses" in reqBody ? reqBody.calEventUserFieldsResponses : null;
|
"calEventUserFieldsResponses" in reqBody ? reqBody.calEventUserFieldsResponses : null;
|
||||||
|
|
||||||
let evt: CalendarEvent = {
|
let evt: CalendarEvent = {
|
||||||
type: eventType.title,
|
type: eventType.title,
|
||||||
title: getEventName(eventNameObject), //this needs to be either forced in english, or fetched for each attendee and organizer separately
|
title: getEventName(eventNameObject), //this needs to be either forced in english, or fetched for each attendee and organizer separately
|
||||||
|
|
Loading…
Reference in New Issue