From e26e053d6a2f908af1e3c83f51f820e757eb92ad Mon Sep 17 00:00:00 2001 From: jonaro00 <54029719+jonaro00@users.noreply.github.com> Date: Thu, 26 Sep 2024 18:59:18 +0200 Subject: [PATCH] fix(admin): beta set access endpoint --- admin/src/client.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/src/client.rs b/admin/src/client.rs index 46bb8b269..332b26416 100644 --- a/admin/src/client.rs +++ b/admin/src/client.rs @@ -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? };