From 565bcd410349832475baffb0cc1c87317aa9d41c Mon Sep 17 00:00:00 2001 From: Michael Youngling <89745384+m88youngling@users.noreply.github.com> Date: Mon, 22 Apr 2024 16:03:11 -0400 Subject: [PATCH] Update StatisticsEndpoints.cs Uhhh I hope this change adds the ability for the api to report the number of rooms per platform. --- .../Controllers/StatisticsEndpoints.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ProjectLighthouse.Servers.API/Controllers/StatisticsEndpoints.cs b/ProjectLighthouse.Servers.API/Controllers/StatisticsEndpoints.cs index dcd9a5c2..08ae07e5 100644 --- a/ProjectLighthouse.Servers.API/Controllers/StatisticsEndpoints.cs +++ b/ProjectLighthouse.Servers.API/Controllers/StatisticsEndpoints.cs @@ -36,6 +36,7 @@ public class StatisticsEndpoints : ApiEndpointController Slots = await StatisticsHelper.SlotCount(this.database, new SlotQueryBuilder()), Users = await StatisticsHelper.UserCount(this.database), RecentMatches = await StatisticsHelper.RecentMatches(this.database), + RoomsPerPlatform = await StatisticsHelper.RoomCountPerPlatform(this.database), TeamPicks = await StatisticsHelper.SlotCount(this.database, new SlotQueryBuilder().AddFilter(new TeamPickFilter())), } ); @@ -74,4 +75,4 @@ public class StatisticsEndpoints : ApiEndpointController return this.Ok(response); } -} \ No newline at end of file +}