From b3a25fcfa663ecadce4c34beb4d7811648c0751d Mon Sep 17 00:00:00 2001
From: Ryan Reed <git@ryanreed.net>
Date: Tue, 2 Jul 2019 19:28:26 -0400
Subject: [PATCH] Correcting typo

---
 app/main.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/main.py b/app/main.py
index b9bd40f..d9bc236 100644
--- a/app/main.py
+++ b/app/main.py
@@ -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()