From 8acd99aaf733f6b78e1ea6c273d665d3a6b6cddd Mon Sep 17 00:00:00 2001 From: jvyden Date: Tue, 1 Mar 2022 14:28:11 -0500 Subject: [PATCH] Include sublevels when getting earth slots Closes #205 --- ProjectLighthouse.sln.DotSettings | 1 + ProjectLighthouse/Controllers/GameApi/Slots/SlotsController.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ProjectLighthouse.sln.DotSettings b/ProjectLighthouse.sln.DotSettings index 13d4e757..fb76d33a 100644 --- a/ProjectLighthouse.sln.DotSettings +++ b/ProjectLighthouse.sln.DotSettings @@ -131,6 +131,7 @@ True True True + True True True True diff --git a/ProjectLighthouse/Controllers/GameApi/Slots/SlotsController.cs b/ProjectLighthouse/Controllers/GameApi/Slots/SlotsController.cs index bac17fa8..9d89570a 100644 --- a/ProjectLighthouse/Controllers/GameApi/Slots/SlotsController.cs +++ b/ProjectLighthouse/Controllers/GameApi/Slots/SlotsController.cs @@ -77,7 +77,7 @@ public class SlotsController : ControllerBase GameVersion gameVersion = token.GameVersion; - Slot? slot = await this.database.Slots.ByGameVersion(gameVersion).FirstOrDefaultAsync(s => s.SlotId == id); + Slot? slot = await this.database.Slots.ByGameVersion(gameVersion, true).FirstOrDefaultAsync(s => s.SlotId == id); if (slot == null) return this.NotFound();