flyzto hace 2 semanas
padre
commit
38226a2a02
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      server/models/GamesPs.js

+ 1 - 1
server/models/GamesPs.js

@@ -773,7 +773,7 @@ const getGamesRelation = ({ mk=-1, ids, listEvents=false, listPC=false } = {}) =
     }
     if (!listEvents) {
       Object.keys(tempRel).forEach(platform => {
-        const { events, evtime, special, sptime, ...gameInfo } = tempRel[platform];
+        const { events, evtime, special, sptime, ...gameInfo } = tempRel[platform] ?? {};
         tempRel[platform] = gameInfo;
       });
     }