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:
authored and GitHub committed 2024-02-13 16:35:04 +05:30
1 parent d4f41e803a
commit bb3b262bd7
3 files changed
+140 -76

No files matched your search

+5 -2
View File
@@ -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,
};
};