diff --git a/Services/NextcloudCalendarService.cs b/Services/NextcloudCalendarService.cs index c35b009..06fb715 100644 --- a/Services/NextcloudCalendarService.cs +++ b/Services/NextcloudCalendarService.cs @@ -209,7 +209,7 @@ public class NextcloudCalendarService( }; vevent.Properties.Add(new Ical.Net.CalendarProperty("X-SHIFT-SCHEDULER", "TRUE")); calendar.Events.Add(vevent); - return new CalendarSerializer().SerializeToString(calendar); + return new CalendarSerializer().SerializeToString(calendar)!; } private static string SanitizeForUid(string name)