mirror of
https://github.com/commercialhaskell/stackage-server.git
synced 2026-01-12 04:08:29 +01:00
Fix the query for selecting the newest package version. Related to 07f3ef293f
This commit is contained in:
parent
78b019a915
commit
3d426e1e9d
@ -552,7 +552,7 @@ getSnapshotPackageLatestVersion pname =
|
||||
run (snapshotPackageInfoQuery $ \_sp s pn v spiQ -> do
|
||||
where_ (pn ^. PackageNameName ==. val pname)
|
||||
orderBy
|
||||
[ desc (stringToArray (v ^. VersionVersion) (val ("." :: String)))
|
||||
[ desc (versionArray v)
|
||||
, desc (s ^. SnapshotCreated)
|
||||
]
|
||||
limit 1
|
||||
|
||||
Loading…
Reference in New Issue
Block a user