[#4] fixed duplication when managing attendance

This commit is contained in:
Camille Moussu
2025-08-01 15:24:07 +02:00
parent 38dfb49dc8
commit a71d1f12fb
3 changed files with 15 additions and 12 deletions
+10 -7
View File
@@ -139,15 +139,18 @@ export function calendarEventToJCal(event: CalendarEvent): any[] {
}
event.attendee.forEach((att) => {
const attendee: Record<string, string> = {
partstat: att.partstat,
rsvp: att.rsvp,
role: att.role,
cutype: att.cutype,
};
if (att.cn) {
attendee.cn = att.cn;
}
vevent[1].push([
"attendee",
{
cn: att.cn,
partstat: att.partstat,
rsvp: att.rsvp,
role: att.role,
cutype: att.cutype,
},
attendee,
"cal-address",
`mailto:${att.cal_address}`,
]);
+1 -1
View File
@@ -14,7 +14,7 @@ export interface userOrganiser {
}
export interface userAttendee {
cn: string;
cn?: string;
cal_address: string;
partstat: string;
rsvp: string;