fix bug trimming
This commit is contained in:
parent
4a71a20034
commit
eb2ebb8883
1 changed files with 2 additions and 2 deletions
|
@ -198,12 +198,12 @@ async function get_games_by_puuid(puuid) {
|
|||
},
|
||||
});
|
||||
|
||||
games.push.apply(games, newGames);
|
||||
|
||||
if (newGames.length < 20) {
|
||||
break;
|
||||
}
|
||||
|
||||
games.push.apply(games, newGames);
|
||||
|
||||
start += COUNT;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue