From 980e58fe570c0fa92a1f0d605ce17bbbec8fbdcd Mon Sep 17 00:00:00 2001 From: Valentin Kaelin Date: Wed, 13 Nov 2019 19:08:51 +0100 Subject: [PATCH] fix: remove remake games from stats --- server/app/Repositories/MatchRepository.js | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/server/app/Repositories/MatchRepository.js b/server/app/Repositories/MatchRepository.js index f3d24dc..ee248f4 100644 --- a/server/app/Repositories/MatchRepository.js +++ b/server/app/Repositories/MatchRepository.js @@ -17,7 +17,8 @@ class MatchRepository { return this.Match.query().aggregate([ { $match: { - summoner_puuid: puuid + summoner_puuid: puuid, + result: { $not: { $eq: 'Remake' } } } }, { @@ -47,7 +48,8 @@ class MatchRepository { return this.Match.query().aggregate([ { $match: { - summoner_puuid: puuid + summoner_puuid: puuid, + result: { $not: { $eq: 'Remake' } } } }, { @@ -77,7 +79,8 @@ class MatchRepository { return this.Match.query().aggregate([ { $match: { - summoner_puuid: puuid + summoner_puuid: puuid, + result: { $not: { $eq: 'Remake' } } } }, { @@ -115,7 +118,8 @@ class MatchRepository { { $match: { summoner_puuid: puuid, - role: { $not: { $eq: 'NONE' } } + role: { $not: { $eq: 'NONE' } }, + result: { $not: { $eq: 'Remake' } } } }, { @@ -154,7 +158,8 @@ class MatchRepository { return this.Match.query().aggregate([ { $match: { - summoner_puuid: puuid + summoner_puuid: puuid, + result: { $not: { $eq: 'Remake' } } } }, { $unwind: "$allyTeam" },