Skip to content

Commit

Permalink
fix: beta versions being included as latest version (#506)
Browse files Browse the repository at this point in the history
  • Loading branch information
Strokkur424 authored Dec 13, 2024
1 parent d762d63 commit 7800b60
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/util/versionUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ const createUserdevVersionsValue = (ttl: number = 5 * 60 * 1000): ExpiringValue<
r.json()
);

return json.map((e) => e.name.substring(1)).reverse();
return json
.map((e) => e.name.substring(1))
.filter((e) => !e.includes("beta"))
.reverse();
});
};

Expand Down

0 comments on commit 7800b60

Please sign in to comment.