diff --git a/index.mjs b/index.mjs index c768898..1259c62 100644 --- a/index.mjs +++ b/index.mjs @@ -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; }