Skip to content

Commit

Permalink
Merge pull request #13 from axodotdev/axo_releases_fix_order
Browse files Browse the repository at this point in the history
fix(axo): fetch latest release
  • Loading branch information
mistydemeo authored Feb 16, 2024
2 parents 209aad5 + 5b6d051 commit 99149c1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -389,11 +389,15 @@ pub fn get_axo_releases(
});
};

Ok(our_release
let mut releases: Vec<Release> = our_release
.releases
.iter()
.map(Release::from_gazenot)
.collect())
.collect();
// GitHub releases are sorted newest to oldest; Axo sorts oldest to newest
releases.reverse();

Ok(releases)
}

pub fn get_latest_stable_release(
Expand Down

0 comments on commit 99149c1

Please sign in to comment.