mirror of
https://github.com/zhigang1992/graphql-engine.git
synced 2026-05-25 18:32:23 +08:00
fix transaction isolation settings on server (#2211)
This commit is contained in:
committed by
Shahidh K Muhammed
parent
5ef5fff860
commit
277be9074e
@@ -186,10 +186,10 @@ parseStrAsBool t
|
||||
readIsoLevel :: String -> Either String Q.TxIsolation
|
||||
readIsoLevel isoS =
|
||||
case isoS of
|
||||
"read-comitted" -> return Q.ReadCommitted
|
||||
"read-committed" -> return Q.ReadCommitted
|
||||
"repeatable-read" -> return Q.RepeatableRead
|
||||
"serializable" -> return Q.ReadCommitted
|
||||
_ -> Left "Only expecting read-comitted / repeatable-read / serializable"
|
||||
"serializable" -> return Q.Serializable
|
||||
_ -> Left "Only expecting read-committed / repeatable-read / serializable"
|
||||
|
||||
type WithEnv a = ReaderT Env (ExceptT String Identity) a
|
||||
|
||||
|
||||
Reference in New Issue
Block a user