moving some printing around

main
Zynh0722 2024-02-08 04:37:48 -08:00
parent 8aeb15806c
commit 3a3f26d39f
1 changed files with 5 additions and 4 deletions

View File

@ -45,9 +45,9 @@ const commonGameIds = valGameIds.filter(
new Set(iceGamesIds), 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 = []; let commonGames = [];
for (const matchId of commonGameIds) { for (const matchId of commonGameIds) {
const game = await rAPI.matchV5.getMatchById({ const game = await rAPI.matchV5.getMatchById({
@ -56,10 +56,11 @@ for (const matchId of commonGameIds) {
}); });
commonGames.push(game); 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 * @param {string} puuid
* @returns {Promise<string[]>} * @returns {Promise<string[]>}