We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e3b9f83 + 06fbf66 commit 40d8e1bCopy full SHA for 40d8e1b
fastapi_async_sqlalchemy/middleware.py
@@ -51,7 +51,7 @@ def __init__(
51
)
52
53
async def dispatch(self, request: Request, call_next: RequestResponseEndpoint):
54
- async with db(commit_on_exit=self.commit_on_exit):
+ async with DBSession(commit_on_exit=self.commit_on_exit):
55
return await call_next(request)
56
57
class DBSessionMeta(type):
0 commit comments