From fb4d29eb438d41980b250b6f051739f2396632ea Mon Sep 17 00:00:00 2001 From: jvyden Date: Tue, 22 Mar 2022 18:22:25 -0400 Subject: [PATCH] Fix admin slot deletion (quite possibly the dumbest fucking bug in existence) --- .../Controllers/Website/Admin/AdminSlotController.cs | 3 --- 1 file changed, 3 deletions(-) diff --git a/ProjectLighthouse/Controllers/Website/Admin/AdminSlotController.cs b/ProjectLighthouse/Controllers/Website/Admin/AdminSlotController.cs index ad99952e..080f6ff9 100644 --- a/ProjectLighthouse/Controllers/Website/Admin/AdminSlotController.cs +++ b/ProjectLighthouse/Controllers/Website/Admin/AdminSlotController.cs @@ -1,5 +1,4 @@ #nullable enable -using System; using System.Threading.Tasks; using LBPUnion.ProjectLighthouse.Types; using LBPUnion.ProjectLighthouse.Types.Levels; @@ -60,8 +59,6 @@ public class AdminSlotController : ControllerBase Slot? slot = await this.database.Slots.FirstOrDefaultAsync(s => s.SlotId == id); if (slot == null) return this.Ok(); - if (slot.Location == null) throw new ArgumentNullException(); - await this.database.RemoveSlot(slot); return this.Ok();