- 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 |
||
|---|---|---|
| .. | ||
| __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 | ||