fix: jobs queue mode to fetch matchlist

This commit is contained in:
Valentin Kaelin 2023-09-21 13:33:39 +02:00
parent bb0e267d6a
commit 037c17bb2d
No known key found for this signature in database
GPG key ID: B389A4E3DFF8E414

View file

@ -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)