Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't throw for missing tournament id in database #99

Merged
merged 1 commit into from
Aug 16, 2023

Conversation

axunonb
Copy link
Member

@axunonb axunonb commented Aug 16, 2023

  • Match, Ranking and TeamApplication Controllers don't throw any more, when a tournament id from TenantContext does not exist in the database. Instead, a critical error is logged.
  • GetCurrentUserId() from AbstractController returns null, if the ClaimTypes.NameIdentifier is missing unexpectedly. The caller will throw an InvalidOperationException when null is not allowed

* Match, Ranking and TeamApplication controllers don't throw, when a tournament id from TenantContext does not exist in the database
* GetCurrentUserId() from AbstractController returns null, if the ClaimTypes.NameIdentifier is missing
@axunonb axunonb merged commit 3618d8b into main Aug 16, 2023
3 checks passed
@axunonb axunonb deleted the pr/missing-tournament-id branch August 16, 2023 11:55
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.

1 participant