Skip to content

Commit

Permalink
fix: exclude prereleases from latest release api (#1026)
Browse files Browse the repository at this point in the history
* fix: exclude prereleases from latest release api

* chore: use map again
  • Loading branch information
Steffen911 authored Nov 28, 2024
1 parent fe37e81 commit c578907
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/api/latest-releases.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const getLatestReleases = async (): Promise<ApiResponse[]> => {
const langfuseReleases = await Promise.all(
responses.map(async (response, index) => {
const data = await response.json();
const latestRelease = data[0];
const latestRelease = data.find((release) => !release.prerelease);
return {
repo: REPOS[index],
latestRelease: latestRelease ? latestRelease.tag_name : undefined,
Expand Down

0 comments on commit c578907

Please sign in to comment.