Skip to content

Commit

Permalink
bug fix for multiple databases support, fix #17
Browse files Browse the repository at this point in the history
  • Loading branch information
shepilov-vladislav committed Dec 21, 2023
1 parent d40c93e commit 3f98f13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fastapi_async_sqlalchemy/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def __init__(
)

async def dispatch(self, request: Request, call_next: RequestResponseEndpoint):
async with db(commit_on_exit=self.commit_on_exit):
async with DBSession(commit_on_exit=self.commit_on_exit):
return await call_next(request)

class DBSessionMeta(type):
Expand Down

0 comments on commit 3f98f13

Please sign in to comment.