The previous filter let matches through if showLoser was true (loser got a finalized result) regardless of whether the loser or winner was actually owned by a manager. This caused spurious notifications when a managed team advanced through a non-scoring round (e.g. R32 → R16 in World Cup) while beating an unowned opponent who happened to get a 0-pt finalized result. New rule: a match is worth announcing only when the winner is owned AND earned points, OR the loser is owned. When a match fires because the loser is owned, the winner's manager tag is still shown for context but they are not Discord-pinged (winnerDiscordUserId remains gated on winnerScoreChanged). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UXKpR3MZJn5Zof1AKeETFM |
||
|---|---|---|
| .. | ||
| 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 | ||