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