Skip to content

Commit

Permalink
fix: logs --latest flipped order (#982)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaro00 authored Jun 8, 2023
1 parent 316b7a3 commit 085eb30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cargo-shuttle/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -389,8 +389,8 @@ impl Shuttle {

if latest {
// Find latest deployment (not always an active one)
let deployments = client.get_deployments(proj_name, 0, u32::MAX).await?;
let most_recent = deployments.last().context(format!(
let deployments = client.get_deployments(proj_name, 0, 1).await?;
let most_recent = deployments.first().context(format!(
"Could not find any deployments for '{proj_name}'. Try passing a deployment ID manually",
))?;

Expand Down

0 comments on commit 085eb30

Please sign in to comment.