Skip to content

Commit

Permalink
Merge pull request #19 from shepilov-vladislav/main
Browse files Browse the repository at this point in the history
bug fix for multiple databases support, fix #17
  • Loading branch information
h0rn3t authored Jan 17, 2024
2 parents cb98d48 + 3f98f13 commit 06fbf66
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 06fbf66

Please sign in to comment.