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