mirror of
https://github.com/vkaelin/LeagueStats.git
synced 2026-03-25 12:57:28 +00:00
fix: don't load coop vs ia games with load-v4 command
This commit is contained in:
parent
414eda66f2
commit
5e33d0b0ba
3 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ const databaseConfig: DatabaseConfig = {
|
|||
naturalSort: true,
|
||||
},
|
||||
healthCheck: true,
|
||||
debug: true,
|
||||
debug: false,
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue