From 99c5edb6249490cdd740d3c3d7dcc5a9b669d668 Mon Sep 17 00:00:00 2001 From: Marc Schmidt Date: Sat, 6 Jul 2024 22:24:35 +0200 Subject: [PATCH] fix: remove fallback timeslot not possible Closes: #120 --- .vscode/launch.json | 6 ++++++ .../Events/UpdatePlayerEventRegistrationsEndpoint.cs | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index cb2fcbe..bed8f13 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -9,6 +9,12 @@ "type": "dotnet", "request": "launch", "projectPath": "${workspaceFolder}/src/server/host/MinigolfFriday.Host.csproj" + }, + { + "name": "C#: Host Attach", + "type": "coreclr", + "request": "attach", + "processName": "MinigolfFriday.Host.exe" } ] } diff --git a/src/server/host/Endpoints/Events/UpdatePlayerEventRegistrationsEndpoint.cs b/src/server/host/Endpoints/Events/UpdatePlayerEventRegistrationsEndpoint.cs index 8855a6e..9d427e5 100644 --- a/src/server/host/Endpoints/Events/UpdatePlayerEventRegistrationsEndpoint.cs +++ b/src/server/host/Endpoints/Events/UpdatePlayerEventRegistrationsEndpoint.cs @@ -145,7 +145,7 @@ await this.SendErrorAsync( } else { - existing.FallbackEventTimeslot = fallbackTimeslot; + existing.FallbackEventTimeslotId = fallbackTimeslot?.Id; } } await databaseContext.SaveChangesAsync(ct);