- Replace 30-line Map+Set queue with a 4-line per-league promise chain in discord.ts — picks still arrive in order, errors don't break the chain - Remove the internal DB re-queries from notifyPickMadeOnDiscord; callers now pre-resolve nextTeamName and nextTeamOwnerId from the draftSlots they already hold, eliminating the redundant team/owner lookups and the pickInRoundFor circular-import workaround - Add the missing Discord notification to draft.force-manual-pick.ts (was the only pick path that never notified Discord) - Update tests to match the simplified function signature https://claude.ai/code/session_01GCkguG2muQwnh3WTvENrwJ |
||
|---|---|---|
| .. | ||
| bracket-simulator.test.ts | ||
| discord.test.ts | ||
| draft-discord.server.test.ts | ||
| draft-email.server.test.ts | ||
| ev-calculator.test.ts | ||
| icm-calculator.test.ts | ||
| probability-engine.test.ts | ||
| probability-updater.test.ts | ||
| sync-tournament-results.test.ts | ||