refactor: split pre-request function out of setPgLocals

This commit is contained in:
Robert Vollmert
2023-02-27 15:12:32 +01:00
committed by Robert
parent 0d5d209bfb
commit 9e0ea113fb
2 changed files with 13 additions and 7 deletions
+1
View File
@@ -223,4 +223,5 @@ handleRequest AuthResult{..} conf appState authenticated prepared jsonDbS pgVer
runQuery mode query =
runDbHandler appState mode authenticated prepared $ do
Query.setPgLocals conf authClaims authRole apiReq jsonDbS pgVer
Query.runPreReq conf
query