Fix the query for selecting the newest package version. Related to 07f3ef293f

This commit is contained in:
Alexey Kuleshevich 2019-06-26 14:06:48 +03:00
parent 78b019a915
commit 3d426e1e9d
No known key found for this signature in database
GPG Key ID: E59B216127119E3E

View File

@ -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