From 037c17bb2d6094f2bcda3e23920c7582f928e541 Mon Sep 17 00:00:00 2001 From: Valentin Kaelin Date: Thu, 21 Sep 2023 13:33:39 +0200 Subject: [PATCH] fix: jobs queue mode to fetch matchlist --- server/app/Controllers/Http/SummonersController.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/server/app/Controllers/Http/SummonersController.ts b/server/app/Controllers/Http/SummonersController.ts index 8a0c22c..25f2203 100644 --- a/server/app/Controllers/Http/SummonersController.ts +++ b/server/app/Controllers/Http/SummonersController.ts @@ -54,7 +54,11 @@ export default class SummonersController { // Add job in 1sec to load entire matchlist in DB (in background) const matchListMode = summonerDB.$isLocal ? MatchListMode.FIRSTIME : MatchListMode.UPDATE - Bull.schedule(new FetchMatchList().key, { puuid: account.puuid, region, matchListMode }, 1000) + Bull.schedule( + new FetchMatchList().key, + { puuid: account.puuid, region, mode: matchListMode }, + 1000 + ) // All seasons the summoner has played finalJSON.seasons = await this.getSeasons(account.puuid)