mirror of
https://github.com/vkaelin/LeagueStats.git
synced 2026-03-25 12:57:28 +00:00
refactor: don't load relations in V4Parser
This commit is contained in:
parent
c437bcaaf8
commit
fc9a87e610
1 changed files with 1 additions and 5 deletions
|
|
@ -56,6 +56,7 @@ class MatchV4Parser {
|
|||
public async parseOneMatch(match: V4MatchDto) {
|
||||
// Parse + store in database
|
||||
const matchId = this.createMatchId(match.gameId, match.platformId)
|
||||
console.log(matchId)
|
||||
|
||||
if (match.participants.length !== 10) {
|
||||
console.log(`Match not saved because < 10 players. Gamemode: ${match.queueId}`)
|
||||
|
|
@ -222,11 +223,6 @@ class MatchV4Parser {
|
|||
banOrders: team.bans.length ? team.bans.map((ban) => ban.pickTurn) : undefined,
|
||||
})
|
||||
}
|
||||
|
||||
// Load Match relations
|
||||
await parsedMatch.load((loader) => {
|
||||
loader.load('teams').load('players')
|
||||
})
|
||||
return parsedMatch
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue