mirror of
https://github.com/vkaelin/LeagueStats.git
synced 2026-03-25 12:57:28 +00:00
fix: jobs queue mode to fetch matchlist
This commit is contained in:
parent
bb0e267d6a
commit
037c17bb2d
1 changed files with 5 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue