Minor cleanup

This commit is contained in:
Gregor Kleen 2017-10-04 14:38:09 +02:00
parent 76aa7da3ab
commit b86e60843f

View File

@ -214,9 +214,7 @@ instance YesodBreadcrumbs UniWorX where
-- How to run database actions.
instance YesodPersist UniWorX where
type YesodPersistBackend UniWorX = SqlBackend
runDB action = do
master <- getYesod
runSqlPool action $ appConnPool master
runDB action = runSqlPool action =<< appConnPool <$> getYesod
instance YesodPersistRunner UniWorX where
getDBRunner = defaultGetDBRunner appConnPool