Skip to content

Commit

Permalink
fix(admin): beta set access endpoint (#1884)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaro00 authored Sep 26, 2024
1 parent 1d2ea62 commit b9e94c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions admin/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,11 @@ impl Client {
pub async fn set_beta_access(&self, user_id: &str, access: bool) -> Result<()> {
let resp = if access {
self.inner
.put(format!("/users/{user_id}/beta"), Option::<()>::None)
.put(format!("/admin/users/{user_id}/beta"), Option::<()>::None)
.await?
} else {
self.inner
.delete(format!("/users/{user_id}/beta"), Option::<()>::None)
.delete(format!("/admin/users/{user_id}/beta"), Option::<()>::None)
.await?
};

Expand Down

0 comments on commit b9e94c7

Please sign in to comment.