This commit is contained in:
2023-05-20 19:02:43 +02:00
parent 6495e8fd62
commit 479010a8ca

View File

@@ -41,7 +41,8 @@ async fn make_register_request(user_id: UserId, username: &str, token: &str) ->
.header("Authorization", config::CONFIG.manager_api_key.clone()) .header("Authorization", config::CONFIG.manager_api_key.clone())
.json(&data) .json(&data)
.send() .send()
.await?; .await?
.error_for_status()?;
Ok(()) Ok(())
} }