Complete fix for invalid ICS and PDF export issue
Co-authored-by: clayschaad <11883505+clayschaad@users.noreply.github.com>
This commit is contained in:
parent
85899aedc9
commit
140f48a54a
2 changed files with 5 additions and 5 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue