- Add unique constraint on participantSeasonResults(participantId, sportsSeasonId) and rewrite upsert to use onConflictDoUpdate, eliminating race conditions and sequential N*2 queries on sync - Fetch pending mappings for all sport types; extend Unmatched card to show for individual sports and route resolve-mapping to participantSeasonResults for season_standings sports - Replace hardcoded SEASON_STANDINGS_SIMULATOR_TYPES Set with sportsSeason.scoringPattern === "season_standings" to avoid drift - Remove countCompletedRaces() from F1 adapter — gamesPlayed/winPct were computed but discarded by the orchestrator for season_standings sports - Replace duplicate parseRacingStatsMap() with the shared statsMap() from espn.ts https://claude.ai/code/session_012ACmUs2vAwEF9jZu7Guos2 |
||
|---|---|---|
| .. | ||
| __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 | ||