changes after pr review

This commit is contained in:
Zamitto 2024-04-29 14:12:06 -03:00
parent 7bdb549f08
commit 6f1bfa0fb9
3 changed files with 13 additions and 13 deletions

View file

@ -36,8 +36,9 @@ const steam250Paths = [
];
export const getSteam250List = async () => {
const gamesPromises = steam250Paths.map((path) => requestSteam250(path));
const gamesList = (await Promise.all(gamesPromises)).flat();
const gamesList = (
await Promise.all(steam250Paths.map((path) => requestSteam250(path)))
).flat();
const gamesMap: Map<string, Steam250Game> = gamesList.reduce((map, item) => {
map.set(item.objectID, item);