Skip to content

Commit

Permalink
fix(frontend): Add missing iCal fields
Browse files Browse the repository at this point in the history
  • Loading branch information
Clashsoft committed Feb 29, 2024
1 parent 8087816 commit 0432786
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,11 @@ export class ChooseEventsComponent implements OnInit {
}

const calendar = new ICalCalendar({
name: 'my first iCal',
method: ICalCalendarMethod.REQUEST,
name: poll.title,
description: poll.description,
url: this.url,
timezone: poll.timeZone,
method: ICalCalendarMethod.REQUEST,
});

for (const event of pollEvents) {
Expand All @@ -179,6 +181,8 @@ export class ChooseEventsComponent implements OnInit {
description += `\n\nParticipants:\n${eventParticipants.map(p => `- ${p.name} (${p.selection[event._id]})`).join('\n')}`;

calendar.createEvent({
id: event._id,
timezone: poll.timeZone,
start: new Date(event.start),
end: new Date(event.end),
summary,
Expand Down

0 comments on commit 0432786

Please sign in to comment.