MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / upgrade_org

Function upgrade_org

atomic-teams/src/org.rs:154–166  ·  view source on GitHub ↗
(client: &StorageClient, slug: &str)

Source from the content-addressed store, hash-verified

152}
153
154pub 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

Callers 1

executeMethod · 0.85

Calls 2

map_remote_errorFunction · 0.85
post_emptyMethod · 0.80

Tested by

no test coverage detected