This commit is contained in:
Michael Snoyman 2022-04-21 13:13:21 +03:00
parent c5847bb2a5
commit 12462dff95
No known key found for this signature in database
GPG Key ID: 907EAE2F42B52046

View File

@ -648,7 +648,7 @@ getLtsSnapshotsForPackage pname mlimit =
run (snapshotPackageInfoQuery $ \_sp s pn _v spiQ -> do
where_ $
pn ^. PackageNameName ==. val pname &&.
(s ^. snapshotName `ilike` val "lts%")
(s ^. SnapshotName `ilike` val "lts%")
orderBy [desc (s ^. SnapshotCreated)]
forM_ mlimit (limit . fromIntegral)
pure (s ^. SnapshotCompiler, spiQ))