From eb2ebb888375b64b79beca84b576e50b7b8349e6 Mon Sep 17 00:00:00 2001 From: Zynh0722 Date: Fri, 9 Feb 2024 02:13:38 -0800 Subject: [PATCH] fix bug trimming --- index.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }