From 140f48a54a8b5113e588b1820b3507b2d8b37279 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 27 Aug 2025 20:05:24 +0000 Subject: [PATCH] Complete fix for invalid ICS and PDF export issue Co-authored-by: clayschaad <11883505+clayschaad@users.noreply.github.com> --- Server/Controllers/ShiftController.cs | 2 +- Shared/TransportModels.cs | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Server/Controllers/ShiftController.cs b/Server/Controllers/ShiftController.cs index 18f5428..7d750f5 100644 --- a/Server/Controllers/ShiftController.cs +++ b/Server/Controllers/ShiftController.cs @@ -7,7 +7,7 @@ namespace ShiftScheduler.Server.Controllers { [ApiController] [Route("api/[controller]")] - // [Authorize(Policy = "AllowedEmails")] // Temporarily disabled for testing + [Authorize(Policy = "AllowedEmails")] public class ShiftController : ControllerBase { private readonly IcsExportService _icsService; diff --git a/Shared/TransportModels.cs b/Shared/TransportModels.cs index d0b1c8b..311a684 100644 --- a/Shared/TransportModels.cs +++ b/Shared/TransportModels.cs @@ -17,7 +17,7 @@ namespace ShiftScheduler.Shared public string DepartureTime { get; set; } = string.Empty; public string ArrivalTime { get; set; } = string.Empty; public string Duration { get; set; } = string.Empty; - public string Platform { get; set; } = string.Empty; + public string? Platform { get; set; } = string.Empty; public List Sections { get; set; } = new(); } @@ -38,9 +38,9 @@ namespace ShiftScheduler.Shared public class TransportCheckpoint { public TransportStation? Station { get; set; } - public string Departure { get; set; } = string.Empty; - public string Arrival { get; set; } = string.Empty; - public string Platform { get; set; } = string.Empty; + public string? Departure { get; set; } = string.Empty; + public string? Arrival { get; set; } = string.Empty; + public string? Platform { get; set; } = string.Empty; } public class TransportStation