adds attendee (#3808)

This commit is contained in:
Syed Ali Shahbaz authored and GitHub committed 2022-08-11 11:16:44 -06:00
1 parent accf845f0e
commit 870cb1f872
1 file changed
+5 -1
+5 -1
View File
@@ -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 iCal
const responses = await Promise.all(