Scheduling infrastructure for absolutely everyone.
adds attendee (#3808)
Syed Ali Shahbaz870cb1f87237
diff --git a/packages/lib/CalendarService.ts b/packages/lib/CalendarService.tsindex 6c70450dd8e..d3c6944d9bf 100644--- a/packages/lib/CalendarService.ts+++ b/packages/lib/CalendarService.ts@@ -88,13 +88,17 @@ export default abstract class BaseCalendarService implements Calendar {description: getRichDescription(event),location: getLocation(event),organizer: { email: event.organizer.email, name: event.organizer.name },+ attendees: getAttendees(event.attendees),/** according to https://datatracker.ietf.org/doc/html/rfc2446#section-3.2.1, in a published iCalendar component.* "Attendees" MUST NOT be present* `attendees: this.getAttendees(event.attendees),`+ * [UPDATE]: Since we're not using the PUBLISH method to publish the iCalendar event and creating the event directly on iCal,+ * this shouldn't be an issue and we should be able to add attendees to the event right here.*/});- if (error || !iCalString) throw new Error("Error creating iCalString");+ if (error || !iCalString)+ throw new Error(`Error creating iCalString:=> ${error?.message} : ${error?.name} `);// We create the event directly on iCalconst responses = await Promise.all(