fix: don't load coop vs ia games with load-v4 command

This commit is contained in:
Kalane 2021-09-20 15:20:43 +02:00
parent 414eda66f2
commit 5e33d0b0ba
3 changed files with 4 additions and 4 deletions

View file

@ -21,7 +21,7 @@ class MatchService {
let alreadyIn = false
let index = 0
do {
let newMatchList = await Jax.Matchlist.puuid(account.puuid, region as string, index)
const newMatchList = await Jax.Matchlist.puuid(account.puuid, region, index)
// Error while fetching Riot API
if (!newMatchList) {
return matchList

View file

@ -29,8 +29,8 @@ class MatchService {
index += 100
} while (!alreadyIn)
// Remove matches from MatchList made in another region, tutorial games + 3v3 games
const tutorialModes = [2000, 2010, 2020, 460, 470, 800, 810, 820]
// Remove matches from MatchList made in another region, tutorial games, 3v3 games, Coop vs IA games
const tutorialModes = [2000, 2010, 2020, 460, 470, 800, 810, 820, 830, 840, 850]
matchList = matchList
.filter((m) => {
const sameRegion = m.platformId.toLowerCase() === region

View file

@ -47,7 +47,7 @@ const databaseConfig: DatabaseConfig = {
naturalSort: true,
},
healthCheck: true,
debug: true,
debug: false,
},
},
}