moving some printing around
parent
8aeb15806c
commit
3a3f26d39f
|
@ -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[]>}
|
||||||
|
|
Loading…
Reference in New Issue