Update StatisticsEndpoints.cs

Uhhh I hope this change adds the ability for the api to report the number of rooms per platform.
This commit is contained in:
Michael Youngling 2024-04-22 16:03:11 -04:00 committed by GitHub
commit 565bcd4103
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);
}
}
}