feat(official-tournaments): add 'not-interested' status handling and update member interest logic
All checks were successful
Deploy tt-tagebuch / deploy (push) Successful in 55s

This commit is contained in:
Torsten Schulz (local)
2026-09-09 13:06:39 +02:00
parent 67ee6135d5
commit 0c9a898d61
2 changed files with 21 additions and 15 deletions

View File

@@ -340,8 +340,14 @@ class OfficialTournamentService {
row.registered = false;
row.participated = false;
break;
case 'not-interested':
row.wants = false;
row.registered = false;
row.participated = false;
row.placement = null;
break;
default: {
const err = new Error('Invalid action. Use: register, participate, or reset');
const err = new Error('Invalid action. Use: register, participate, reset, or not-interested');
err.status = 400;
throw err;
}