mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
changes after pr review
This commit is contained in:
parent
7bdb549f08
commit
6f1bfa0fb9
3 changed files with 13 additions and 13 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue