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> |
||
|---|---|---|
| .. | ||
| __tests__ | ||
| simulations | ||
| standings-sync | ||
| bracket-simulator.ts | ||
| brackt.server.ts | ||
| discord.ts | ||
| draft-autostart.ts | ||
| draft-discord.server.ts | ||
| draft-email.server.ts | ||
| ev-calculator.ts | ||
| icm-calculator.ts | ||
| probability-engine.ts | ||
| probability-updater.ts | ||
| sync-tournament-results.ts | ||