Skip to content

Commit 8695135

Browse files
committed
fix in is_context_initiated, pop_db_session_from_context, get_db_session_from_context
1 parent 22c1e10 commit 8695135

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

context_async_sqlalchemy/session.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ async def close_db_session(connect: DBConnect) -> None:
116116
await your_function_with_db_session()
117117
await close_db_session(connect)
118118
"""
119-
session = pop_db_session_from_context(connect.context_key)
119+
session = pop_db_session_from_context(connect)
120120
if session:
121121
await session.close()
122122

0 commit comments

Comments
 (0)