Skip to content

Commit

Permalink
Fix package version view
Browse files Browse the repository at this point in the history
  • Loading branch information
kMutagene committed Jun 21, 2024
1 parent 082a6f7 commit 6ab38bd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/PackageRegistryService/Pages/Handlers/PackageHandlers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,12 @@ public static async Task<Results<ContentHttpResult, NotFound>> RenderLatest(stri
{
var packages = await
database.ValidationPackages
.Where(p => p.Name == packageName && p.BuildMetadataVersionSuffix == "" && p.BuildMetadataVersionSuffix == "")
.Where(p => p.Name == packageName)
.ToArrayAsync();

var latestPackage =
packages
.Where(p => p.BuildMetadataVersionSuffix == "" && p.BuildMetadataVersionSuffix == "")
.OrderByDescending(p => p.MajorVersion)
.ThenByDescending(p => p.MinorVersion)
.ThenByDescending(p => p.PatchVersion)
Expand Down

0 comments on commit 6ab38bd

Please sign in to comment.