flyzto 2 viikkoa sitten
vanhempi
commit
b63a76b8bc
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      server/models/GamesPs.js

+ 1 - 1
server/models/GamesPs.js

@@ -960,7 +960,7 @@ const getGamesRelation = ({
     }
     Object.keys(tempRel).forEach(platform => {
       const { events, evtime, special, sptime, ...gameInfo } = tempRel[platform] ?? {};
-      if (!listEvents) {
+      if (!listEvents && !listOdds) {
         tempRel[platform] = gameInfo;
       }
       if (listOdds) {