feat: booker atom custom location (#14635)
* frontend: handle booking locationUrl * backend: pass booking locationUrl to handleNewBooking * examples app: display booking location if provided * fix: v2 not starting: contains -> includes * backend: pass booking locationUrl to handleNewBooking * swagger docs update * examples app: dont display where of booking if does not start with http --------- Co-authored-by: Keith Williams <[email protected]> Co-authored-by: Morgan <[email protected]>
This commit is contained in:
9 files changed
+53
-14
No files matched your search
@@ -909,10 +909,18 @@ async function handler(
|
||||
platformRescheduleUrl?: string;
|
||||
platformCancelUrl?: string;
|
||||
platformBookingUrl?: string;
|
||||
platformBookingLocation?: string;
|
||||
},
|
||||
bookingDataSchemaGetter: BookingDataSchemaGetter = getBookingDataSchema
|
||||
) {
|
||||
const { userId, platformClientId, platformCancelUrl, platformBookingUrl, platformRescheduleUrl } = req;
|
||||
const {
|
||||
userId,
|
||||
platformClientId,
|
||||
platformCancelUrl,
|
||||
platformBookingUrl,
|
||||
platformRescheduleUrl,
|
||||
platformBookingLocation,
|
||||
} = req;
|
||||
|
||||
// handle dynamic user
|
||||
let eventType =
|
||||
@@ -1501,7 +1509,7 @@ async function handler(
|
||||
responses: reqBody.calEventResponses || null,
|
||||
userFieldsResponses: reqBody.calEventUserFieldsResponses || null,
|
||||
attendees: attendeesList,
|
||||
location: bookingLocation, // Will be processed by the EventManager later.
|
||||
location: platformBookingLocation ?? bookingLocation, // Will be processed by the EventManager later.
|
||||
conferenceCredentialId,
|
||||
destinationCalendar,
|
||||
hideCalendarNotes: eventType.hideCalendarNotes,
|
||||
|
||||
Reference in new issue
Block a user