(client: &StorageClient, slug: &str)
| 131 | } |
| 132 | |
| 133 | pub async fn upgrade_org(client: &StorageClient, slug: &str) -> TeamsResult<OrgInfo> { |
| 134 | debug!("Upgrading organization: slug={slug}"); |
| 135 | let path = format!("/orgs/{slug}/upgrade"); |
| 136 | let info: OrgInfo = client |
| 137 | .post_empty(&path) |
| 138 | .await |
| 139 | .map_err(|e| map_remote_error(e, format!("org {slug}")))?; |
| 140 | debug!( |
| 141 | "Upgraded organization: slug={}, plan={}", |
| 142 | info.slug, info.plan |
| 143 | ); |
| 144 | Ok(info) |
| 145 | } |
| 146 | |
| 147 | // --------------------------------------------------------------------------- |
| 148 | // Tests |
no test coverage detected