- Extract markEliminatedAndAnnounce helper, removing the duplicated load-existing-results / collect-newly-eliminated / gated-recalc pattern from the generate-bracket, generate-groups, and populate-knockout intents. - Wrap the Discord announcement in a log-only try/catch so a failed standings recalc/snapshot never fails the (already-committed) bracket generation action. - Drop eventId from the elimination recalc call so announcements don't pull in unrelated completed matches as Scored Matches. - Hoist the per-season draftPicks lookup in recalculateAffectedLeagues so the scored-match and elimination sections share one query. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01E5gLy3K9vW65ogG8GTCjWE |
||
|---|---|---|
| .. | ||
| components | ||
| contexts | ||
| hooks | ||
| lib | ||
| models | ||
| routes | ||
| services | ||
| test | ||
| types | ||
| utils | ||
| welcome | ||
| app.css | ||
| entry.client.tsx | ||
| entry.server.tsx | ||
| root.tsx | ||
| routes.ts | ||