mirror of
https://github.com/commercialhaskell/stackage-server.git
synced 2026-01-20 16:01:55 +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)
|
, ("no-bounds", viewNoBounds)
|
||||||
, ("unchanged", viewUnchanged)
|
, ("unchanged", viewUnchanged)
|
||||||
]
|
]
|
||||||
forM_ views $ \(name, func) ->
|
forM_ views $ \(name, func) -> runResourceT $ createView
|
||||||
runResourceT $ flip (Database.Persist.runPool dbconf) p $ createView
|
|
||||||
name
|
name
|
||||||
func
|
func
|
||||||
(sourceHistory uploadHistory)
|
(sourceHistory uploadHistory)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user