flyzto 2 هفته پیش
والد
کامیت
329a95f330
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      server/models/GamesPs.js

+ 1 - 1
server/models/GamesPs.js

@@ -651,7 +651,7 @@ const updateGamesEvents = ({ platform, mk, games, outrights, timestamp, tp }) =>
     }
 
     const { UpdateTimestamp } = GAMES;
-    if ((!UpdateTimestamp[tp] || UpdateTimestamp[tp] < timestamp) && (games.length || outrights.length)) {
+    if ((!UpdateTimestamp[tp] || UpdateTimestamp[tp] < timestamp) && (games?.length || outrights?.length)) {
       // Logs.out('updateGamesEvents', { tp, timestamp });
       UpdateTimestamp[tp] = timestamp;
     }