From dc6fe23fc597c6faa9344e826ed695ac074274ee Mon Sep 17 00:00:00 2001 From: LumaLivy Date: Sun, 14 Nov 2021 21:50:32 -0500 Subject: [PATCH] ditto --- ProjectLighthouse/Controllers/ListController.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ProjectLighthouse/Controllers/ListController.cs b/ProjectLighthouse/Controllers/ListController.cs index 01582004..720c90b3 100644 --- a/ProjectLighthouse/Controllers/ListController.cs +++ b/ProjectLighthouse/Controllers/ListController.cs @@ -33,7 +33,7 @@ namespace LBPUnion.ProjectLighthouse.Controllers GameVersion gameVersion = token.GameVersion; - IEnumerable queuedLevels = new Database().QueuedLevels.Include(q => q.User) + IEnumerable queuedLevels = this.database.QueuedLevels.Include(q => q.User) .Include(q => q.Slot) .Include(q => q.Slot.Location) .Include(q => q.Slot.Creator) @@ -95,7 +95,7 @@ namespace LBPUnion.ProjectLighthouse.Controllers GameVersion gameVersion = token.GameVersion; - IEnumerable heartedLevels = new Database().HeartedLevels.Include(q => q.User) + IEnumerable heartedLevels = this.database.HeartedLevels.Include(q => q.User) .Include(q => q.Slot) .Include(q => q.Slot.Location) .Include(q => q.Slot.Creator) @@ -154,7 +154,7 @@ namespace LBPUnion.ProjectLighthouse.Controllers [HttpGet("favouriteUsers/{username}")] public IActionResult GetFavouriteUsers(string username) { - IEnumerable heartedProfiles = new Database().HeartedProfiles.Include + IEnumerable heartedProfiles = this.database.HeartedProfiles.Include (q => q.User) .Include(q => q.HeartedUser) .Include(q => q.HeartedUser.Location)