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
All checks were successful
Deploy tt-tagebuch / deploy (push) Successful in 55s
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user