Minor cleanup
This commit is contained in:
parent
76aa7da3ab
commit
b86e60843f
@ -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
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user