As Google Meet is always installed, this fixes the doubling (#3093)
* As Google Meet is always installed, this fixes the doubling * Make entire Google link clickable, fix extraData * Attempt at type fixing :) * AdditionalInformation for the booking page? * Update packages/emails/src/components/LocationInfo.tsx Being explicit :) * Exclude AdditionalInformation as it is irrelevant here Co-authored-by: Peer Richelsen <[email protected]> Co-authored-by: Omar López <[email protected]>
This commit is contained in:
12 files changed
+72
-74
No files matched your search
@@ -145,7 +145,10 @@ export default abstract class BaseCalendarService implements Calendar {
|
||||
}
|
||||
}
|
||||
|
||||
async updateEvent(uid: string, event: CalendarEvent) {
|
||||
async updateEvent(
|
||||
uid: string,
|
||||
event: CalendarEvent
|
||||
): Promise<NewCalendarEventType | NewCalendarEventType[]> {
|
||||
try {
|
||||
const events = await this.getEventsByUID(uid);
|
||||
|
||||
@@ -166,10 +169,12 @@ export default abstract class BaseCalendarService implements Calendar {
|
||||
this.log.debug("Error creating iCalString");
|
||||
|
||||
return {
|
||||
uid,
|
||||
type: event.type,
|
||||
id: typeof event.uid === "string" ? event.uid : "-1",
|
||||
password: "",
|
||||
url: typeof event.location === "string" ? event.location : "-1",
|
||||
additionalInfo: {},
|
||||
};
|
||||
}
|
||||
|
||||
@@ -186,7 +191,7 @@ export default abstract class BaseCalendarService implements Calendar {
|
||||
headers: this.headers,
|
||||
});
|
||||
})
|
||||
).then((p) => p.map((r) => r.json() as unknown as Event));
|
||||
).then((p) => p.map((r) => r.json() as unknown as NewCalendarEventType));
|
||||
} catch (reason) {
|
||||
this.log.error(reason);
|
||||
|
||||
@@ -290,7 +295,7 @@ export default abstract class BaseCalendarService implements Calendar {
|
||||
if (vtimezone) {
|
||||
const zone = new ICAL.Timezone(vtimezone);
|
||||
currentEvent.startDate = currentEvent.startDate.convertToZone(zone);
|
||||
currentEvent.endDate = currentEvent.endDate.convertToZone(zone);
|
||||
currentEvent.endDate = currentEvent.endDate.convertToZone(zone);
|
||||
}
|
||||
currentStart = dayjs(currentEvent.startDate.toJSDate());
|
||||
|
||||
|
||||
Reference in new issue
Block a user