In non-scoring rounds (R32 → R16 in FIFA 48), winners advance without earning any points. The previous code set winnerUsername unconditionally for any match where the winner had an owner, so when a loser was eliminated (triggering showLoser=true), the advancing winner appeared in the "Scored Matches" section and triggered a notification even though their fantasy score was unchanged. Gate winnerUsername on winnerScoreChanged, matching the existing guard on winnerDiscordUserId. A manager is now only mentioned when their team actually earned or changed points this round. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UXKpR3MZJn5Zof1AKeETFM |
||
|---|---|---|
| .. | ||
| __tests__ | ||
| match-sync | ||
| 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 | ||