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

Function upgrade_org

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

Source from the content-addressed store, hash-verified

131}
132
133pub 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

Callers 1

executeMethod · 0.85

Calls 2

map_remote_errorFunction · 0.85
post_emptyMethod · 0.80

Tested by

no test coverage detected