Skip to content

Commit

Permalink
feat(player): show most played map first in the list
Browse files Browse the repository at this point in the history
  • Loading branch information
akiver committed Jul 14, 2024
1 parent b21748c commit 7594037
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/node/database/player/fetch-player-maps-stats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ function buildStatsQuery({
avg<number>('players.headshot_percentage').as('headshotPercentage'),
])
.where('players.steam_id', '=', steamId)
.orderBy('matchCount', 'desc')
.groupBy('mapName');

if (startDate !== undefined && endDate !== undefined) {
Expand Down

0 comments on commit 7594037

Please sign in to comment.