From a78623b6ab70b701c1e2373c8b0cb75cda1d5e51 Mon Sep 17 00:00:00 2001 From: hydronePVP45 <51852312+hydronePVP45@users.noreply.github.com> Date: Mon, 15 Nov 2021 20:16:02 +0100 Subject: [PATCH] add favourite users total thingy --- ProjectLighthouse/Controllers/ListController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ProjectLighthouse/Controllers/ListController.cs b/ProjectLighthouse/Controllers/ListController.cs index e2b11ee6..e16bed53 100644 --- a/ProjectLighthouse/Controllers/ListController.cs +++ b/ProjectLighthouse/Controllers/ListController.cs @@ -166,7 +166,7 @@ namespace LBPUnion.ProjectLighthouse.Controllers string response = heartedProfiles.Aggregate(string.Empty, (current, q) => current + q.HeartedUser.Serialize(token.GameVersion)); - return this.Ok(LbpSerializer.TaggedStringElement("favouriteUsers", response, "total", 1)); + return this.Ok(LbpSerializer.TaggedStringElement("favouriteUsers", response, "total", heartedProfiles.Count())); } [HttpPost("favourite/user/{username}")]