some formatting fixes

This commit is contained in:
2022-11-03 03:39:22 +01:00
parent 4d36ce8899
commit 3e4b90a1bd
2 changed files with 29 additions and 9 deletions

View File

@@ -278,7 +278,7 @@ func GetMetaStats(dbPlayer *ent.Player) (*MetaStatsResponse, error) {
pMatches, err := s.QueryMatches().
Select(match.FieldID, match.FieldMatchResult, match.FieldMap).
Where(match.IDIn(matchIDs...)).
WithStats().
WithStats(). // TODO: limit fields returned
Where(match.HasStatsWith(matchplayer.Or(matchplayer.PlayerStats(dbPlayer.ID), matchplayer.PlayerStats(s.ID)))).
All(context.Background())
if err != nil {