more work
This commit is contained in:
parent
3a3f26d39f
commit
82bc331688
1 changed files with 20 additions and 1 deletions
21
index.mjs
21
index.mjs
|
@ -59,7 +59,26 @@ for (const matchId of commonGameIds) {
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(`Common Game Data Found: ${commonGameIds.length}`);
|
console.log(`Common Game Data Found: ${commonGameIds.length}`);
|
||||||
console.log(`${JSON.stringify(commonGames[0], null, " ")}`);
|
|
||||||
|
commonGames.reverse();
|
||||||
|
|
||||||
|
commonGames
|
||||||
|
.map(({ info, metadata }) => ({
|
||||||
|
id: metadata.matchId,
|
||||||
|
data: info.participants
|
||||||
|
.filter(({ puuid }) => puuid === ice.puuid || puuid === val.puuid)
|
||||||
|
.map(({ championId, championName, summonerName, lane }) => ({
|
||||||
|
championId,
|
||||||
|
championName,
|
||||||
|
summonerName,
|
||||||
|
lane,
|
||||||
|
})),
|
||||||
|
}))
|
||||||
|
// .filter(({ data }) => {
|
||||||
|
// const lanes = data.map((s) => s.lane);
|
||||||
|
// return lanes.includes("BOTTOM") && lanes.includes("SUPPORT");
|
||||||
|
// })
|
||||||
|
.forEach((g) => console.log(g));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {string} puuid
|
* @param {string} puuid
|
||||||
|
|
Loading…
Reference in a new issue