flip args to inTransaction

This commit is contained in:
Adam C. Baker
2014-10-10 17:32:17 -07:00
parent e4669dcb37
commit a984fe3bf9
2 changed files with 7 additions and 8 deletions
+2 -2
View File
@@ -41,8 +41,8 @@ main = do
Prelude.putStrLn $ "Listening on port " ++ (show $ configPort conf :: String)
conn <- connectPostgreSQL' dburi
runTLS tls settings $ gzip def $ cors corsPolicy $
inTransaction conn (app (cs $ configAnonRole conf))
runTLS tls settings . gzip def . cors corsPolicy $
inTransaction (app (cs $ configAnonRole conf)) conn
where
describe = progDesc "create a REST API to an existing Postgres database"