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. -- How to run database actions.
instance YesodPersist UniWorX where instance YesodPersist UniWorX where
type YesodPersistBackend UniWorX = SqlBackend type YesodPersistBackend UniWorX = SqlBackend
runDB action = do runDB action = runSqlPool action =<< appConnPool <$> getYesod
master <- getYesod
runSqlPool action $ appConnPool master
instance YesodPersistRunner UniWorX where instance YesodPersistRunner UniWorX where
getDBRunner = defaultGetDBRunner appConnPool getDBRunner = defaultGetDBRunner appConnPool