mirror of
https://github.com/commercialhaskell/stackage-server.git
synced 2026-04-22 12:37:44 +02:00
Avoid unnecessarily looking up StackageId in haddock unpacker
This commit is contained in:
parent
f635977b02
commit
eeb0aae9d9
@ -314,8 +314,7 @@ createHaddockUnpacker root store runDB' urlRenderRef = do
|
||||
-- Determine which packages have documentation and update the
|
||||
-- database appropriately
|
||||
runResourceT $ runDB' $ do
|
||||
ment <- getBy $ UniqueStackage ident
|
||||
forM_ ment $ \(Entity sid _) -> do
|
||||
let sid = entityKey stackageEnt
|
||||
updateWhere
|
||||
[PackageStackage ==. sid]
|
||||
[PackageHasHaddocks =. False]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user