Skip to content

Commit

Permalink
fixed bug where custom game mode also show up in match history
Browse files Browse the repository at this point in the history
  • Loading branch information
achen220 committed Nov 13, 2023
1 parent 3fb5589 commit 8558319
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions server/controllers/apiController.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,15 @@ const apiController = {
const response = await fetch(apiLinkArray[i]);
const matchInfo = await response.json();
const filteredMatchInfo = {};
if (matchInfo.info.gameMode !== 'CLASSIC') continue;
const participantsArray= matchInfo.info.participants;
filteredMatchInfo.queueId = matchInfo.info.queueId;
filteredMatchInfo.participants = {
blue: [],
red: []
}
participantsArray.forEach((player) => {
};
console.log(i)
participantsArray.forEach((player,index) => {
let userName = player.summonerName;
let playerStats = {};
playerStats.name = userName;
Expand Down

0 comments on commit 8558319

Please sign in to comment.