flyzto 3 週間 前
コミット
6effa34a8e
1 ファイル変更6 行追加9 行削除
  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') ?? {};
     getSolutionsWithRelations(solutions, gamesRelations, 5)
     .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 => {
-      Logs.err('getSolutionsWithRelations error', error);
+      Logs.err('get and update solutions error', error);
     });
   }
 });