flyzto 5 сар өмнө
parent
commit
a2e8cf550b

+ 7 - 6
server/models/GamesPs.js

@@ -67,7 +67,7 @@ const syncLeaguesList = ({ mk, leagues }) => {
   }
   axios.post(`${BASE_URL}/syncLeague`, { mk, leagues })
   .then(res => {
-    Logs.out('syncLeaguesList', res.data);
+    // Logs.out('syncLeaguesList', res.data);
   })
   .catch(err => {
     Logs.out('syncLeaguesList', err.message);
@@ -120,7 +120,7 @@ const syncGamesList = ({ platform, mk, games }) => {
   }
   axios.post(`${BASE_URL}/syncGames`, { platform, mk, games })
   .then(res => {
-    Logs.out('syncGamesList', { platform, mk, count: games.length }, res.data);
+    // Logs.out('syncGamesList', { platform, mk, count: games.length }, res.data);
   })
   .catch(err => {
     Logs.out('syncGamesList', { platform, mk }, err.message);
@@ -185,7 +185,7 @@ const submitOdds = ({ platform, mk, games }) => {
   }
   axios.post(`${BASE_URL}/syncOdds`, { platform, mk, games})
   .then(res => {
-    Logs.out('syncOdds', { platform, mk, count: games.length }, res.data);
+    // Logs.out('syncOdds', { platform, mk, count: games.length }, res.data);
   })
   .catch(err => {
     Logs.out('syncOdds', { platform, mk }, err.message);
@@ -452,6 +452,7 @@ const updateGamesRelation = () => {
 
     const updateCount = {
       add: 0,
+      update: 0,
       delete: 0
     };
 
@@ -485,7 +486,7 @@ const updateGamesRelation = () => {
       }
     });
 
-    Logs.out('updateGamesRelation', updateCount);
+    Logs.outDev('updateGamesRelation', updateCount);
 
   })
   .catch(err => {
@@ -525,7 +526,7 @@ const syncGamesResult = async (result) => {
   }
   axios.post(`${BASE_URL}/syncMatchResult`, result)
   .then(res => {
-    Logs.out('syncMatchResult', res.data);
+    // Logs.out('syncMatchResult', res.data);
   })
   .catch(err => {
     Logs.out('syncMatchResult', err.message);
@@ -549,7 +550,7 @@ const syncSolutions = (solutions) => {
   }
   axios.post(`${BASE_URL}/syncDsOpportunity`, solutions)
   .then(res => {
-    Logs.out('syncSolutions', res.data);
+    // Logs.out('syncSolutions', res.data);
   })
   .catch(err => {
     Logs.out('syncSolutions', err.message);