Complete fix for invalid ICS and PDF export issue

Co-authored-by: clayschaad <11883505+clayschaad@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2025-08-27 20:05:24 +00:00
parent 85899aedc9
commit 140f48a54a
2 changed files with 5 additions and 5 deletions

View file

@ -7,7 +7,7 @@ namespace ShiftScheduler.Server.Controllers
{ {
[ApiController] [ApiController]
[Route("api/[controller]")] [Route("api/[controller]")]
// [Authorize(Policy = "AllowedEmails")] // Temporarily disabled for testing [Authorize(Policy = "AllowedEmails")]
public class ShiftController : ControllerBase public class ShiftController : ControllerBase
{ {
private readonly IcsExportService _icsService; private readonly IcsExportService _icsService;

View file

@ -17,7 +17,7 @@ namespace ShiftScheduler.Shared
public string DepartureTime { get; set; } = string.Empty; public string DepartureTime { get; set; } = string.Empty;
public string ArrivalTime { get; set; } = string.Empty; public string ArrivalTime { get; set; } = string.Empty;
public string Duration { 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<TransportSection> Sections { get; set; } = new(); public List<TransportSection> Sections { get; set; } = new();
} }
@ -38,9 +38,9 @@ namespace ShiftScheduler.Shared
public class TransportCheckpoint public class TransportCheckpoint
{ {
public TransportStation? Station { get; set; } public TransportStation? Station { get; set; }
public string Departure { get; set; } = string.Empty; public string? Departure { get; set; } = string.Empty;
public string Arrival { get; set; } = string.Empty; public string? Arrival { get; set; } = string.Empty;
public string Platform { get; set; } = string.Empty; public string? Platform { get; set; } = string.Empty;
} }
public class TransportStation public class TransportStation