|
|
@@ -597,8 +597,6 @@ const updateSolutions = (solutions) => {
|
|
|
const getSolutions = async () => {
|
|
|
const { minShowAmount } = await getSetting();
|
|
|
const solutionsList = Object.values(GAMES.Solutions);
|
|
|
- const relIds = solutionsList.map(item => item.info.id);
|
|
|
- const gamesEvents = getGamesEvents({ relIds });
|
|
|
const gamesRelation = getGamesRelation();
|
|
|
const relationsMap = new Map(gamesRelation.map(item => [item.id, item.rel]));
|
|
|
const solutions = solutionsList.sort((a, b) => b.sol.win_average - a.sol.win_average)
|
|
|
@@ -614,6 +612,8 @@ const getSolutions = async () => {
|
|
|
info: { id, ...relation }
|
|
|
}
|
|
|
});
|
|
|
+ const relIds = solutions.map(item => item.info.id);
|
|
|
+ const gamesEvents = getGamesEvents({ relIds });
|
|
|
return { solutions, gamesEvents };
|
|
|
}
|
|
|
|