brackt/app/services/standings-sync
Claude a9acfba546
Fix MLB division leaders missing when ESPN returns flat standings structure
When ESPN's API returns teams directly on the conference group (no division
children), all teams got division="" so only one team globally received
divisionRank=1. Fix by resolving division from a hardcoded team-name map
as a fallback, and scoping divisionRank computation per conference+division
to prevent AL/NL teams from sharing a group.

https://claude.ai/code/session_01288dkXYwKJUfXrEhPd8rmo
2026-06-11 17:40:21 +00:00
..
__tests__ Fix MLB division leaders missing when ESPN returns flat standings structure 2026-06-11 17:40:21 +00:00
afl.ts Fix oxlint errors. 2026-03-22 20:41:44 -07:00
epl.ts Deduplicate soccer simulator helpers (#391) 2026-05-07 11:48:57 -07:00
espn.ts Fix MLB standings 406 error and refactor ESPN adapter shared code (#62) 2026-06-01 03:31:18 +00:00
f1.ts Fix IndyCar standings: correct ESPN stat key, update title, restore finalized badge 2026-06-10 09:17:23 -07:00
index.ts sync racing standings (#80) 2026-06-10 04:25:48 +00:00
mlb.ts Fix MLB division leaders missing when ESPN returns flat standings structure 2026-06-11 17:40:21 +00:00
mls.ts Fix MLB standings 406 error and refactor ESPN adapter shared code (#62) 2026-06-01 03:31:18 +00:00
nba.ts Fix MLB standings 406 error and refactor ESPN adapter shared code (#62) 2026-06-01 03:31:18 +00:00
nhl.ts Add regular season standings for NBA/NHL (fixes #89) (#192) 2026-03-21 00:12:01 -07:00
thesportsdb.ts Add regular season standings for NBA/NHL (fixes #89) (#192) 2026-03-21 00:12:01 -07:00
types.ts sync racing standings (#80) 2026-06-10 04:25:48 +00:00
wnba.ts Fix MLB standings 406 error and refactor ESPN adapter shared code (#62) 2026-06-01 03:31:18 +00:00