Skip to content

Commit

Permalink
Middleware fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dyakovri authored Mar 12, 2023
1 parent faf3664 commit bc1491f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions marketing_api/routes/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,7 @@ async def http_error_handler(req, exc):
app.add_middleware(
DBSessionMiddleware,
db_url=settings.DB_DSN,
session_args={"autocommit": True},
engine_args={"pool_pre_ping": True}
engine_args={"pool_pre_ping": True, "isolation_level": "AUTOCOMMIT"},
)

app.add_middleware(
Expand Down

0 comments on commit bc1491f

Please sign in to comment.