flyzto 2 달 전
부모
커밋
38226a2a02
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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;
       });
     }