flyzto 3 tygodni temu
rodzic
commit
6effa34a8e
1 zmienionych plików z 6 dodań i 9 usunięć
  1. 6 9
      server/models/Platforms.js

+ 6 - 9
server/models/Platforms.js

@@ -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);
     });
     });
   }
   }
 });
 });