refactor: queryDbSettings doesn't need the pool

This commit is contained in:
Robert Vollmert
2022-08-02 09:24:14 +02:00
committed by Robert
parent 421163dc75
commit d53949e4a4
2 changed files with 4 additions and 6 deletions
+1 -1
View File
@@ -234,7 +234,7 @@ reReadConfig startingUp appState = do
AppConfig{..} <- AppState.getConfig appState
dbSettings <-
if configDbConfig then do
qDbSettings <- queryDbSettings (AppState.getPool appState) configDbPreparedStatements
qDbSettings <- SQL.use (AppState.getPool appState) $ queryDbSettings configDbPreparedStatements
case qDbSettings of
Left e -> do
let