fix: Add location to ics file (#13646)
* Add location to ics file * Add tests * fix: type err --------- Co-authored-by: Peer Richelsen <[email protected]> Co-authored-by: Udit Takkar <[email protected]> Co-authored-by: Udit Takkar <[email protected]>
This commit is contained in:
3 files changed
+140
-76
No files matched your search
@@ -161,7 +161,10 @@ export const buildSubscriberEvent = (booking?: Partial<Booking>) => {
|
||||
};
|
||||
};
|
||||
|
||||
export const buildCalendarEvent = (event?: Partial<CalendarEvent>): CalendarEvent => {
|
||||
export const buildCalendarEvent = (
|
||||
event?: Partial<CalendarEvent>,
|
||||
omitVideoCallData?: boolean
|
||||
): CalendarEvent => {
|
||||
const uid = faker.datatype.uuid();
|
||||
return {
|
||||
uid,
|
||||
@@ -176,7 +179,7 @@ export const buildCalendarEvent = (event?: Partial<CalendarEvent>): CalendarEven
|
||||
customInputs: {},
|
||||
additionalNotes: faker.lorem.paragraph(),
|
||||
organizer: buildPerson(),
|
||||
videoCallData: buildVideoCallData(),
|
||||
...(!omitVideoCallData && { videoCallData: buildVideoCallData() }),
|
||||
...event,
|
||||
};
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user