mirror of
https://github.com/vkaelin/LeagueStats.git
synced 2026-03-25 21:07:27 +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 alreadyIn = false
|
||||||
let index = 0
|
let index = 0
|
||||||
do {
|
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
|
// Error while fetching Riot API
|
||||||
if (!newMatchList) {
|
if (!newMatchList) {
|
||||||
return matchList
|
return matchList
|
||||||
|
|
|
||||||
|
|
@ -29,8 +29,8 @@ class MatchService {
|
||||||
index += 100
|
index += 100
|
||||||
} while (!alreadyIn)
|
} while (!alreadyIn)
|
||||||
|
|
||||||
// Remove matches from MatchList made in another region, tutorial games + 3v3 games
|
// 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]
|
const tutorialModes = [2000, 2010, 2020, 460, 470, 800, 810, 820, 830, 840, 850]
|
||||||
matchList = matchList
|
matchList = matchList
|
||||||
.filter((m) => {
|
.filter((m) => {
|
||||||
const sameRegion = m.platformId.toLowerCase() === region
|
const sameRegion = m.platformId.toLowerCase() === region
|
||||||
|
|
|
||||||
|
|
@ -47,7 +47,7 @@ const databaseConfig: DatabaseConfig = {
|
||||||
naturalSort: true,
|
naturalSort: true,
|
||||||
},
|
},
|
||||||
healthCheck: true,
|
healthCheck: true,
|
||||||
debug: true,
|
debug: false,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue