flyzto 5 mesiacov pred
rodič
commit
5219e8073d
1 zmenil súbory, kde vykonal 5 pridanie a 0 odobranie
  1. 5 0
      server/triangle/eventsMatch.js

+ 5 - 0
server/triangle/eventsMatch.js

@@ -84,6 +84,11 @@ const extractOdds = ({ evtime, events, sptime, special }) => {
   if (sptime > expireTime) {
     odds = { ...odds, ...special };
   }
+  Object.keys(odds).forEach(ior => {
+    if (odds[ior] <= 0) {
+      delete odds[ior];
+    }
+  });
   return odds;
 }