From 85d422377cd086cae20914784d407f13ad19ff9b Mon Sep 17 00:00:00 2001 From: user Date: Mon, 4 Mar 2024 19:48:08 +0300 Subject: [PATCH] dev@locazia: fix misprint --- app/api/routes/node_storage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/routes/node_storage.py b/app/api/routes/node_storage.py index d9c452d..4d74144 100644 --- a/app/api/routes/node_storage.py +++ b/app/api/routes/node_storage.py @@ -35,7 +35,7 @@ async def s_api_v1_storage_post(request): try: file_hash = b58encode(hashlib.sha256(file_content).digest()).decode() - stored_content = db_session.query(StoredContent).filter(StoredContent.hash == file_hash).first() + stored_content = request.ctx.db_session.query(StoredContent).filter(StoredContent.hash == file_hash).first() if stored_content: stored_cid = stored_content.cid.serialize_v1() return {