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}