From 3a3f26d39f87eb464b09af05d8c5ec449e262de2 Mon Sep 17 00:00:00 2001 From: Zynh0722 Date: Thu, 8 Feb 2024 04:37:48 -0800 Subject: [PATCH] moving some printing around --- index.mjs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/index.mjs b/index.mjs index f56fb5e..c2b1a0f 100644 --- a/index.mjs +++ b/index.mjs @@ -45,9 +45,9 @@ const commonGameIds = valGameIds.filter( new Set(iceGamesIds), ); -console.log(`Common Games Found: ${commonGameIds.length}`); -console.log(`${JSON.stringify(commonGameIds, null, " ")}`); +// console.log(`${JSON.stringify(commonGameIds, null, " ")}`); +/** @type {RiotAPITypes.MatchV5.MatchDTO[]} */ let commonGames = []; for (const matchId of commonGameIds) { const game = await rAPI.matchV5.getMatchById({ @@ -56,10 +56,11 @@ for (const matchId of commonGameIds) { }); commonGames.push(game); - - console.log(JSON.stringify(game)); } +console.log(`Common Game Data Found: ${commonGameIds.length}`); +console.log(`${JSON.stringify(commonGames[0], null, " ")}`); + /** * @param {string} puuid * @returns {Promise}