fix: oopsie

This commit is contained in:
Valentin Kaelin 2023-09-27 01:24:59 +02:00
parent bd21281787
commit aacf64c6f7
No known key found for this signature in database
GPG key ID: B389A4E3DFF8E414

View file

@ -45,14 +45,14 @@ export default class SummonersController {
const summonerDB = await Summoner.firstOrCreate({ puuid: account.puuid })
const [names, seasons, gamemodes, current, ranked, recentActivity] = await Promise.all([
await SummonerService.getAllSummonerNames(account, summonerDB),
SummonerService.getAllSummonerNames(account, summonerDB),
this.getSeasons(account.puuid),
MatchRepository.gamemodes(account.puuid),
Jax.Spectator.summonerID(account.id, region),
SummonerService.getRanked(account.id, region),
MatchRepository.recentActivity(account.puuid),
// Only last 100 matchIds in matchlist
await MatchService.updateMatchList(account.puuid, region, MatchListMode.LIGHT),
MatchService.updateMatchList(account.puuid, region, MatchListMode.LIGHT),
])
// Add job in 1sec to load entire matchlist in DB (in background)