flyzto vor 1 Tag
Ursprung
Commit
9429ee814d
1 geänderte Dateien mit 6 neuen und 9 gelöschten Zeilen
  1. 6 9
      server/models/GamesPs.js

+ 6 - 9
server/models/GamesPs.js

@@ -31,10 +31,7 @@ const PS_IOR_KEYS = [
   ['+3', 'ior_rah_25', 'ior_wmc_3', 'ior_rc_35'],
   // ['+4', 'ior_rah_35', 'ior_wmc_4', 'ior_rc_45'],
   // ['+5', 'ior_rah_45', 'ior_wmc_5', 'ior_rc_55'],
-  ['ou_05', 'ior_ouc_05', '-', 'ior_ouh_05'],
-  ['ou_15', 'ior_ouc_15', '-', 'ior_ouh_15'],
-  ['ou_25', 'ior_ouc_25', '-', 'ior_ouh_25'],
-  ['ou_35', 'ior_ouc_35', '-', 'ior_ouh_35'],
+  ['ou', 'ior_ouc_05', 'ior_ouh_05', 'ior_ouc_15', 'ior_ouh_15', 'ior_ouc_25', 'ior_ouh_25', 'ior_ouc_35', 'ior_ouh_35'],
   ['jqs', 'ior_ot_1', 'ior_ot_2', 'ior_ot_3', 'ior_ot_4', 'ior_ot_5', /*'ior_ot_6', 'ior_ot_7'*/],
 ];
 
@@ -412,7 +409,7 @@ const syncBaseEvents = ({ mk, games, outrights }) => {
             source: odds[key]?.s,
           }
         });
-        if (label == 'jqs') {
+        if (label == 'jqs' || label == 'ou') {
           match = match.filter(item => item.value !== 0);
         }
         return {
@@ -420,14 +417,14 @@ const syncBaseEvents = ({ mk, games, outrights }) => {
           match
         };
       }).filter(item => {
-        if (item.label == 'jqs') {
+        if (item.label == 'jqs' || item.label == 'ou') {
           return item.match.length;
         }
         else {
           return item.match.every(entry => {
-            if (entry.key == '-' || entry.key.startsWith('ior_ou')) {
-              return true;
-            }
+            // if (entry.key == '-' || entry.key.startsWith('ior_ou')) {
+            //   return true;
+            // }
             return entry.value !== 0;
           });
         }