From 22ff28d6a009b16e69ff056131dbfa9d24e632ca Mon Sep 17 00:00:00 2001 From: Valentin Kaelin Date: Wed, 8 Jan 2020 17:49:14 +0100 Subject: [PATCH] fix: last played is now correct in champions tab --- server/app/Repositories/MatchRepository.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/app/Repositories/MatchRepository.js b/server/app/Repositories/MatchRepository.js index 6c16176..cc80ae6 100644 --- a/server/app/Repositories/MatchRepository.js +++ b/server/app/Repositories/MatchRepository.js @@ -90,7 +90,7 @@ class MatchRepository { const groupParams = { time: { $sum: "$time" }, gameLength: { $avg: "$time" }, - date: { $last: "$date" }, + date: { $max: "$date" }, champion: { $first: "$champion" }, kills: { $sum: "$stats.kills" }, deaths: { $sum: "$stats.deaths" },