flyzto před 1 týdnem
rodič
revize
22b4692487
2 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 1 1
      main.js
  2. 1 0
      models/Games.js

+ 1 - 1
main.js

@@ -50,5 +50,5 @@ app.use((req, res, next) => {
 app.use('/api/games', gamesRoutes);
 
 // 启动服务
-const PORT = process.env.PORT || 9029;
+const PORT = process.env.PORT || 9021;
 app.listen(PORT, () => Logs.out(`Server running on port ${PORT}`));

+ 1 - 0
models/Games.js

@@ -22,6 +22,7 @@ const updateData = async () => {
     return Promise.all([getWebLeaguesToday, getWebLeaguesTomorrow])
   })
   .then(data => {
+    const [webLeaguesToday, webLeaguesTomorrow] = data;
     const leaguesMap = new Map(webLeaguesToday.concat(webLeaguesTomorrow));
     const leagues = Array.from(leaguesMap.values()).sort((a, b) => a.id - b.id);
     Store.set('pinnacle', leagues, 'leagues');