flyzto 2 tuần trước cách đây
mục cha
commit
ba0a1b5d6b
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      server/models/GamesPs.js

+ 1 - 1
server/models/GamesPs.js

@@ -95,7 +95,7 @@ const getRuleType = (rule) => {
 const matchGame = (relation, sk) => {
   const keys = [];
   Object.keys(relation).forEach(platform => {
-    const { leagueName, teamHomeName, teamAwayName } = relation[platform];
+    const { leagueName, teamHomeName, teamAwayName } = relation[platform] ?? {};
     if (platform == 'ps') {
       keys.push(leagueName);
     }