mirror of
https://github.com/vkaelin/LeagueStats.git
synced 2026-03-25 12:57:28 +00:00
fix(api): check if we have ranks to save to db
This commit is contained in:
parent
aff325f22c
commit
72cbc916bc
1 changed files with 3 additions and 1 deletions
|
|
@ -34,7 +34,9 @@ class MatchPlayerRankParser {
|
||||||
.filter(notEmpty)
|
.filter(notEmpty)
|
||||||
|
|
||||||
// Store ranks in DB
|
// Store ranks in DB
|
||||||
|
if (parsedRanks.length) {
|
||||||
await Database.table('match_player_ranks').multiInsert(parsedRanks)
|
await Database.table('match_player_ranks').multiInsert(parsedRanks)
|
||||||
|
}
|
||||||
|
|
||||||
return parsedRanks
|
return parsedRanks
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue