Skip to content

Commit

Permalink
fix: order latest versions descending
Browse files Browse the repository at this point in the history
  • Loading branch information
Vilsol committed Oct 10, 2024
1 parent 89aca8d commit e7a2795
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gql/resolver_mods.go
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,7 @@ func (r *modResolver) LatestVersions(ctx context.Context, obj *generated.Mod) (*
Order(
version.ByModID(),
version.ByStability(),
version.ByCreatedAt(),
version.ByCreatedAt(sql.OrderDesc()),
).
Modify(func(s *sql.Selector) {
s.SelectExpr(sql.Expr("DISTINCT on (mod_id, stability) *"))
Expand Down

0 comments on commit e7a2795

Please sign in to comment.