mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-08-03 02:28:39 +00:00
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:
parent
0ce748de8f
commit
565bcd4103
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue