Closed SamuelSau closed 1 year ago
Implemented a matchDetailsArray that will return all the corresponding details of each matchId from matchList document. Also, I took into account that if a matchId doesn't exist in our matchList document, then we use the League of Legends API and save data into the matchDetails document.
If puuid in matchList collection, return data from querySummoners and here to client immediately
Else make number of API calls dependent on count of matches in matchIdResponse