dev@locazia: fix misprint

This commit is contained in:
user 2024-03-04 19:48:08 +03:00
parent bb959865e7
commit 85d422377c
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ async def s_api_v1_storage_post(request):
try: try:
file_hash = b58encode(hashlib.sha256(file_content).digest()).decode() 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: if stored_content:
stored_cid = stored_content.cid.serialize_v1() stored_cid = stored_content.cid.serialize_v1()
return { return {