Browse Source

Correcting typo

master
Ryan Reed 5 years ago
parent
commit
b3a25fcfa6
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/main.py

+ 1
- 1
app/main.py View File

@ -19,7 +19,7 @@ app = FastAPI()
async def db_session_middleware(request: Request, call_next):
response = Response("Internal server error", status_code=500)
try:
request.state.db = SessionLocal
request.state.db = SessionLocal()
response = await call_next(request)
finally:
request.state.db.close()


Loading…
Cancel
Save