mirror of
https://github.com/commercialhaskell/stackage-server.git
synced 2026-01-12 04:08:29 +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 <$>
|
||||
(snapshotPackageInfoQuery $ \_sp s pn v spiQ -> do
|
||||
where_ (pn ^. PackageNameName ==. val pname)
|
||||
orderBy [desc (versionArray v), desc (s ^. SnapshotId)]
|
||||
orderBy [desc (s ^. SnapshotId)]
|
||||
limit 1
|
||||
pure ((), spiQ))
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user