From d29cd2da2e96c0159ae945798ffb93fbb468f20f Mon Sep 17 00:00:00 2001 From: LumaLivy Date: Sat, 13 Nov 2021 15:55:40 -0500 Subject: [PATCH] use static class member database --- ProjectLighthouse/Controllers/ListController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ProjectLighthouse/Controllers/ListController.cs b/ProjectLighthouse/Controllers/ListController.cs index 7ac6bf03..e460270b 100644 --- a/ProjectLighthouse/Controllers/ListController.cs +++ b/ProjectLighthouse/Controllers/ListController.cs @@ -28,7 +28,7 @@ namespace LBPUnion.ProjectLighthouse.Controllers [HttpGet("slots/lolcatftw/{username}")] public IActionResult GetLevelQueue(string username) { - IEnumerable queuedLevels = new Database().QueuedLevels.Include + IEnumerable queuedLevels = this.database.QueuedLevels.Include (q => q.User) .Include(q => q.Slot) .Include(q => q.Slot.Location) @@ -85,7 +85,7 @@ namespace LBPUnion.ProjectLighthouse.Controllers [HttpGet("favouriteSlots/{username}")] public IActionResult GetFavouriteSlots(string username) { - IEnumerable heartedLevels = new Database().HeartedLevels.Include + IEnumerable heartedLevels = this.database.HeartedLevels.Include (q => q.User) .Include(q => q.Slot) .Include(q => q.Slot.Location)