(client: &StorageClient, slug: &str)
| 152 | } |
| 153 | |
| 154 | pub async fn upgrade_org(client: &StorageClient, slug: &str) -> TeamsResult<OrgInfo> { |
| 155 | debug!("Upgrading organization: slug={slug}"); |
| 156 | let path = format!("/orgs/{slug}/upgrade"); |
| 157 | let info: OrgInfo = client |
| 158 | .post_empty(&path) |
| 159 | .await |
| 160 | .map_err(|e| map_remote_error(e, format!("org {slug}")))?; |
| 161 | debug!( |
| 162 | "Upgraded organization: slug={}, plan={}", |
| 163 | info.slug, info.plan |
| 164 | ); |
| 165 | Ok(info) |
| 166 | } |
| 167 | |
| 168 | // --------------------------------------------------------------------------- |
| 169 | // Tests |
no test coverage detected