From 36f3c46b59cffe7daeaad380290d2e6082ff4e08 Mon Sep 17 00:00:00 2001 From: Valentin Kaelin Date: Sat, 18 Sep 2021 21:36:30 +0200 Subject: [PATCH] refactor(champions): remove useless fields from query --- server-v2/app/Repositories/MatchRepository.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/server-v2/app/Repositories/MatchRepository.ts b/server-v2/app/Repositories/MatchRepository.ts index 9463850..2b4aba0 100644 --- a/server-v2/app/Repositories/MatchRepository.ts +++ b/server-v2/app/Repositories/MatchRepository.ts @@ -154,14 +154,12 @@ class MatchRepository { COUNT(match_players.id) as count, SUM(match_players.win) as wins, SUM(match_players.loss) as losses, - SUM(matches.game_duration) as time, AVG(matches.game_duration)::int as "gameLength", AVG(match_players.minions)::int as minions, AVG(match_players.gold)::int as gold, AVG(match_players.damage_dealt_champions)::int as "dmgChamp", AVG(match_players.damage_taken)::int as "dmgTaken", AVG(match_players.kp) as kp, - AVG(match_players.kda) as kda, MAX(matches.date) as date FROM match_players