fix: dynamic roster type detection in /trade add-player (#29) #61

Closed
cal wants to merge 1 commits from ai/major-domo-v2-29 into next-release

1 Commits

Author SHA1 Message Date
Cal Corum
5bdf0a02f2 fix: dynamic roster type detection in /trade add-player (#29)
All checks were successful
Build Docker Image / build (pull_request) Successful in 1m7s
Replaces hardcoded RosterType.MAJOR_LEAGUE for from_roster and to_roster
with detection based on player.team.roster_type() and dest_team.roster_type().
If player.team is not populated (search endpoint returns team_id only),
fetches full team via team_service.get_team() to obtain roster type.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-03 00:07:37 -06:00