From a01a78563f661d30ca422578d96ec291945c6df2 Mon Sep 17 00:00:00 2001 From: hydronePVP45 <51852312+hydronePVP45@users.noreply.github.com> Date: Mon, 15 Nov 2021 20:11:15 +0100 Subject: [PATCH] fixed total thingy in queue lsit --- 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 765582a5..ef12d2b1 100644 --- a/ProjectLighthouse/Controllers/ListController.cs +++ b/ProjectLighthouse/Controllers/ListController.cs @@ -43,7 +43,7 @@ namespace LBPUnion.ProjectLighthouse.Controllers string response = queuedLevels.Aggregate(string.Empty, (current, q) => current + q.Slot.Serialize()); - return this.Ok(LbpSerializer.TaggedStringElement("slots", response, "total", 1)); + return this.Ok(LbpSerializer.TaggedStringElement("slots", response, "total", queuedLevels.Count())); } [HttpPost("lolcatftw/add/user/{id:int}")] @@ -217,4 +217,4 @@ namespace LBPUnion.ProjectLighthouse.Controllers #endregion } -} \ No newline at end of file +}