mirror of
https://github.com/vkaelin/LeagueStats.git
synced 2026-03-25 21:07:27 +00:00
fix: remove remake games from stats
This commit is contained in:
parent
f138db27a5
commit
980e58fe57
1 changed files with 10 additions and 5 deletions
|
|
@ -17,7 +17,8 @@ class MatchRepository {
|
||||||
return this.Match.query().aggregate([
|
return this.Match.query().aggregate([
|
||||||
{
|
{
|
||||||
$match: {
|
$match: {
|
||||||
summoner_puuid: puuid
|
summoner_puuid: puuid,
|
||||||
|
result: { $not: { $eq: 'Remake' } }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -47,7 +48,8 @@ class MatchRepository {
|
||||||
return this.Match.query().aggregate([
|
return this.Match.query().aggregate([
|
||||||
{
|
{
|
||||||
$match: {
|
$match: {
|
||||||
summoner_puuid: puuid
|
summoner_puuid: puuid,
|
||||||
|
result: { $not: { $eq: 'Remake' } }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -77,7 +79,8 @@ class MatchRepository {
|
||||||
return this.Match.query().aggregate([
|
return this.Match.query().aggregate([
|
||||||
{
|
{
|
||||||
$match: {
|
$match: {
|
||||||
summoner_puuid: puuid
|
summoner_puuid: puuid,
|
||||||
|
result: { $not: { $eq: 'Remake' } }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -115,7 +118,8 @@ class MatchRepository {
|
||||||
{
|
{
|
||||||
$match: {
|
$match: {
|
||||||
summoner_puuid: puuid,
|
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([
|
return this.Match.query().aggregate([
|
||||||
{
|
{
|
||||||
$match: {
|
$match: {
|
||||||
summoner_puuid: puuid
|
summoner_puuid: puuid,
|
||||||
|
result: { $not: { $eq: 'Remake' } }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{ $unwind: "$allyTeam" },
|
{ $unwind: "$allyTeam" },
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue