feat: remove bots game in stats

This commit is contained in:
Valentin Kaelin 2019-11-30 22:18:10 +01:00
parent 9297c1ee06
commit 351ce80c77

View file

@ -18,7 +18,8 @@ class MatchRepository {
{ {
$match: { $match: {
summoner_puuid: puuid, summoner_puuid: puuid,
result: { $not: { $eq: 'Remake' } } result: { $not: { $eq: 'Remake' } },
gamemode: { $nin: [800, 810, 820, 830, 840, 850] }
} }
}, },
{ {
@ -55,7 +56,8 @@ class MatchRepository {
{ {
$match: { $match: {
summoner_puuid: puuid, summoner_puuid: puuid,
result: { $not: { $eq: 'Remake' } } result: { $not: { $eq: 'Remake' } },
gamemode: { $nin: [800, 810, 820, 830, 840, 850] }
} }
}, },
{ {
@ -86,7 +88,8 @@ class MatchRepository {
{ {
$match: { $match: {
summoner_puuid: puuid, summoner_puuid: puuid,
result: { $not: { $eq: 'Remake' } } result: { $not: { $eq: 'Remake' } },
gamemode: { $nin: [800, 810, 820, 830, 840, 850] }
} }
}, },
{ {
@ -117,7 +120,8 @@ class MatchRepository {
{ {
$match: { $match: {
summoner_puuid: puuid, summoner_puuid: puuid,
result: { $not: { $eq: 'Remake' } } result: { $not: { $eq: 'Remake' } },
gamemode: { $nin: [800, 810, 820, 830, 840, 850] }
} }
}, },
{ {
@ -156,7 +160,8 @@ class MatchRepository {
$match: { $match: {
summoner_puuid: puuid, summoner_puuid: puuid,
role: { $not: { $eq: 'NONE' } }, role: { $not: { $eq: 'NONE' } },
result: { $not: { $eq: 'Remake' } } result: { $not: { $eq: 'Remake' } },
gamemode: { $nin: [800, 810, 820, 830, 840, 850] }
} }
}, },
{ {
@ -196,7 +201,8 @@ class MatchRepository {
{ {
$match: { $match: {
summoner_puuid: puuid, summoner_puuid: puuid,
result: { $not: { $eq: 'Remake' } } result: { $not: { $eq: 'Remake' } },
gamemode: { $nin: [800, 810, 820, 830, 840, 850] }
} }
}, },
{ $unwind: "$allyTeam" }, { $unwind: "$allyTeam" },