From 5e33d0b0ba2ba373cfb802fcce01250433d5292f Mon Sep 17 00:00:00 2001 From: Kalane Date: Mon, 20 Sep 2021 15:20:43 +0200 Subject: [PATCH] fix: don't load coop vs ia games with load-v4 command --- server-v2/app/Services/MatchService.ts | 2 +- server-v2/app/Services/MatchV4Service.ts | 4 ++-- server-v2/config/database.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/server-v2/app/Services/MatchService.ts b/server-v2/app/Services/MatchService.ts index 925769f..670a12d 100644 --- a/server-v2/app/Services/MatchService.ts +++ b/server-v2/app/Services/MatchService.ts @@ -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 diff --git a/server-v2/app/Services/MatchV4Service.ts b/server-v2/app/Services/MatchV4Service.ts index e01bc3f..7030fb1 100644 --- a/server-v2/app/Services/MatchV4Service.ts +++ b/server-v2/app/Services/MatchV4Service.ts @@ -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 diff --git a/server-v2/config/database.ts b/server-v2/config/database.ts index 09cf7f6..4742f0e 100644 --- a/server-v2/config/database.ts +++ b/server-v2/config/database.ts @@ -47,7 +47,7 @@ const databaseConfig: DatabaseConfig = { naturalSort: true, }, healthCheck: true, - debug: true, + debug: false, }, }, }