Skip to content

Commit

Permalink
fix(cargo-shuttle): delete command url (#1798)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaro00 authored Jun 12, 2024
1 parent 2a7e5ce commit c64cab0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cargo-shuttle/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,9 @@ impl ShuttleApiClient {
}

pub async fn delete_project(&self, project: &str) -> Result<String> {
let mut builder = self.client.delete(format!("/projects/{project}/delete"));
let path = format!("/projects/{project}/delete");
let url = format!("{}{}", self.api_url, path);
let mut builder = self.client.delete(url);
builder = self.set_auth_bearer(builder);
// project delete on alpha can take a while
builder = builder.timeout(Duration::from_secs(60 * 5));
Expand Down

0 comments on commit c64cab0

Please sign in to comment.