The MlbStandingsAdapter never populated `divisionRank`, so every team evaluated to `divisionRank ?? 99 > 1` in `buildDivisionSections` and fell through to the wildcard section. Computes `divisionRank` per team using ESPN's existing division entry order (which already applies MLB's official tiebreakers) rather than re-sorting, then passes it through to the upsert. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| epl.test.ts | ||
| f1.test.ts | ||
| mlb.test.ts | ||
| mls.test.ts | ||
| nba.test.ts | ||
| nhl.test.ts | ||
| sync.test.ts | ||
| wnba.test.ts | ||