mirror of
https://github.com/commercialhaskell/stackage-server.git
synced 2026-01-21 00:11:56 +01:00
Always take from latest snapshot published
This commit is contained in:
parent
5f4edc17b3
commit
af4ba4feae
@ -606,7 +606,7 @@ getSnapshotPackageLatestVersionQuery pname =
|
|||||||
fmap snd . listToMaybe <$>
|
fmap snd . listToMaybe <$>
|
||||||
(snapshotPackageInfoQuery $ \_sp s pn v spiQ -> do
|
(snapshotPackageInfoQuery $ \_sp s pn v spiQ -> do
|
||||||
where_ (pn ^. PackageNameName ==. val pname)
|
where_ (pn ^. PackageNameName ==. val pname)
|
||||||
orderBy [desc (versionArray v), desc (s ^. SnapshotId)]
|
orderBy [desc (s ^. SnapshotId)]
|
||||||
limit 1
|
limit 1
|
||||||
pure ((), spiQ))
|
pure ((), spiQ))
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user