mlbserver 2025.2.21 → 2025.2.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +5 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1285,8 +1285,11 @@ app.get('/', async function(req, res) {
1285
1285
  team_ids = session.getTeamIds()
1286
1286
  for (let i=0; i<session.credentials.fav_teams.length; i++) {
1287
1287
  if ( session.credentials.fav_teams[i] != '' ) {
1288
- level_ids = levels['All']
1289
- team_ids += ',' + session.getAffiliateTeamIds(session.credentials.fav_teams[i])
1288
+ let affiliate_team_ids = session.getAffiliateTeamIds(session.credentials.fav_teams[i])
1289
+ if ( affiliate_team_ids ) {
1290
+ level_ids = levels['All']
1291
+ team_ids += ',' + affiliate_team_ids
1292
+ }
1290
1293
  }
1291
1294
  }
1292
1295
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mlbserver",
3
- "version": "2025.02.21",
3
+ "version": "2025.02.22",
4
4
  "description": "",
5
5
  "repository": {
6
6
  "type": "git",