Skip to content

Commit 40d8e1b

Browse files
author
Eugene Shershen
committed
Merge remote-tracking branch 'origin/main' into main
2 parents e3b9f83 + 06fbf66 commit 40d8e1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fastapi_async_sqlalchemy/middleware.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def __init__(
5151
)
5252

5353
async def dispatch(self, request: Request, call_next: RequestResponseEndpoint):
54-
async with db(commit_on_exit=self.commit_on_exit):
54+
async with DBSession(commit_on_exit=self.commit_on_exit):
5555
return await call_next(request)
5656

5757
class DBSessionMeta(type):

0 commit comments

Comments
 (0)