Skip to content

Commit bbcd11d

Browse files
[69] Get teams instead of getting debates (#70)
* [69] fix get_tournaments * [69] remove unnecessary admin check
1 parent c88705a commit bbcd11d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/routes/team_routes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ async fn get_teams(
117117
}
118118

119119
let tournament = Tournament::get_by_id(tournament_id, pool).await?;
120-
match tournament.get_debates(pool).await
120+
match tournament.get_teams(pool).await
121121
{
122122
Ok(teams) => Ok(Json(teams).into_response()),
123123
Err(e) => {

src/routes/tournament_routes.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ pub fn route() -> Router<AppState> {
2626
///
2727
/// This request only returns the tournaments the user is permitted to see.
2828
/// The user must be given any role within a tournament to see it.
29+
/// The infrastructure admin can see all tournaments
2930
#[utoipa::path(get, path = "/tournament",
3031
responses(
3132
(

0 commit comments

Comments
 (0)