We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b67d41 commit 5d0da6bCopy full SHA for 5d0da6b
1 file changed
backend/middleware.py
@@ -18,7 +18,7 @@ async def __call__(self, scope: Scope, receive: Receive, send: Send) -> None:
18
ssl_cert_reqs=ssl.CERT_NONE
19
)
20
db = client[MONGO_DATABASE]
21
- scope["state"].db = db
+ Request(scope).state.db = db
22
await self._app(scope, receive, send)
23
24
0 commit comments