Skip to content

Conversation

@diangogav
Copy link
Owner

No description provided.

@diangogav diangogav self-assigned this Nov 21, 2025
- Add bearer auth and ADMIN role checks to tournament endpoints
- Restrict tournament creation to ADMIN users only
- Restrict bracket generation to ADMIN users only
- Restrict match result recording to ADMIN users only
- Add optional banlist field for format identification
  (e.g., Edison, TCG, OCG)
- Banlist stored in tournament metadata
- Inject JWT dependency into TournamentsProxyController
- Update routers to pass JWT instance to controllers

BREAKING CHANGE: Tournament creation, bracket generation,
and match result recording now require ADMIN role
- Refactor UpdateRankingUseCase to fetch matches and calculate
  final tournament rankings
- Distribute points to all participants based on position:
  1st=10pts, 2nd=7pts, 3rd/4th=5pts
- Make TournamentRanking domain immutable with functional methods
- Replace console.log with project logger (Pino)
- Update webhook to process all participants automatically
- Enhance verify.ts to validate points distribution

Points are now awarded to all tournament participants, not just
the winner, creating a fairer reward system.
- Replace hard‑coded process.env.TOURNAMENTS_API_URL with config.tournaments.apiUrl.

- Delete obsolete setup‑admin.ts script.
@diangogav diangogav merged commit d2a6cf6 into main Jan 19, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants