Skip to content

Commit 0bcc466

Browse files
authored
fix(admin): return type (#2017)
1 parent 5449aca commit 0bcc466

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

admin/src/client.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,12 +138,14 @@ impl Client {
138138
.await
139139
}
140140

141-
pub async fn set_user_tier(&self, user_id: &str, tier: &str) -> Result<String> {
141+
pub async fn set_user_tier(&self, user_id: &str, tier: &str) -> Result<()> {
142142
self.inner
143-
.put_json(
143+
.put(
144144
format!("/admin/users/{user_id}/tier/{tier}"),
145145
Option::<()>::None,
146146
)
147-
.await
147+
.await?;
148+
149+
Ok(())
148150
}
149151
}

cargo-shuttle/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -826,7 +826,7 @@ impl Shuttle {
826826
)
827827
});
828828
let _ = webbrowser::open(&url);
829-
eprintln!("Complete login in Shuttle Console to authenticate CLI.");
829+
eprintln!("Complete login in Shuttle Console to authenticate the Shuttle CLI.");
830830
eprintln!("If your browser did not automatically open, go to {url}");
831831
eprintln!();
832832
eprintln!("{}", format!("Token: {token}").bold());

0 commit comments

Comments
 (0)