Merge branch 'refs/heads/main' into recent-activity

# Conflicts:
#	ProjectLighthouse/Migrations/DatabaseContextModelSnapshot.cs
This commit is contained in:
Slendy 2024-11-02 13:10:08 -05:00
commit 1172b92bc9
No known key found for this signature in database
GPG key ID: 7288D68361B91428
138 changed files with 4735 additions and 588 deletions

View file

@ -27,7 +27,8 @@ public class StatisticsController : ControllerBase
public IActionResult PlayersInPodCount() => this.Ok(StatisticsHelper.RoomCountForPlatform(this.GetToken().Platform).ToString());
[HttpGet("totalPlayerCount")]
public async Task<IActionResult> TotalPlayerCount() => this.Ok((await StatisticsHelper.RecentMatchesForGame(this.database, this.GetToken().GameVersion)).ToString());
public async Task<IActionResult> TotalPlayerCount() =>
this.Ok((await StatisticsHelper.RecentMatches(this.database, l => l.GameVersion == this.GetToken().GameVersion)).ToString());
[HttpGet("planetStats")]
[Produces("text/xml")]