|
@@ -70,17 +70,14 @@ triangleData.registerRequest('solutions', solutions => {
|
|
|
const gamesRelations = Store.get('gamesRelations') ?? {};
|
|
const gamesRelations = Store.get('gamesRelations') ?? {};
|
|
|
getSolutionsWithRelations(solutions, gamesRelations, 5)
|
|
getSolutionsWithRelations(solutions, gamesRelations, 5)
|
|
|
.then(solutionsList => {
|
|
.then(solutionsList => {
|
|
|
- Logs.out('solutions with relations', solutionsList);
|
|
|
|
|
- updateSolutions(solutionsList)
|
|
|
|
|
- .then(res => {
|
|
|
|
|
- Logs.out('updateSolutions res', res);
|
|
|
|
|
- })
|
|
|
|
|
- .catch(error => {
|
|
|
|
|
- Logs.err('updateSolutions error', error);
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ Logs.outDev('get solutions with relations', solutionsList);
|
|
|
|
|
+ return updateSolutions(solutionsList)
|
|
|
|
|
+ })
|
|
|
|
|
+ .then(res => {
|
|
|
|
|
+ Logs.outDev('update solutions res', res);
|
|
|
})
|
|
})
|
|
|
.catch(error => {
|
|
.catch(error => {
|
|
|
- Logs.err('getSolutionsWithRelations error', error);
|
|
|
|
|
|
|
+ Logs.err('get and update solutions error', error);
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|