mirror of
https://github.com/commercialhaskell/stackage-server.git
synced 2026-01-12 04:08:29 +01:00
Remove unnecessary database usage for view creation
This commit is contained in:
parent
af9a88444e
commit
fe12a78407
@ -172,8 +172,7 @@ makeFoundation useEcho conf = do
|
||||
, ("no-bounds", viewNoBounds)
|
||||
, ("unchanged", viewUnchanged)
|
||||
]
|
||||
forM_ views $ \(name, func) ->
|
||||
runResourceT $ flip (Database.Persist.runPool dbconf) p $ createView
|
||||
forM_ views $ \(name, func) -> runResourceT $ createView
|
||||
name
|
||||
func
|
||||
(sourceHistory uploadHistory)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user