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" },