mirror of
https://github.com/neondatabase/neon.git
synced 2026-06-01 04:20:39 +00:00
Fix expected tenant deletion response
This commit is contained in:
@@ -119,7 +119,7 @@ impl Client {
|
||||
resp.json().await.map_err(Error::ReceiveBody)
|
||||
}
|
||||
|
||||
pub async fn delete_tenant(&self, tenant_id: TenantId) -> Result<models::TimelineDeleteResult> {
|
||||
pub async fn delete_tenant(&self, tenant_id: TenantId) -> Result<models::TenantDeleteResult> {
|
||||
let uri = format!("{}/v1/tenant/{}", self.mgmt_api_endpoint, tenant_id);
|
||||
let resp = self.request_maybe_body(Method::DELETE, &uri, None::<()>).await?;
|
||||
resp.json().await.map_err(Error::ReceiveBody)
|
||||
|
||||
Reference in New Issue
Block a user