From 916034993e419571da3792680ad0c443310a39e6 Mon Sep 17 00:00:00 2001 From: user Date: Mon, 4 Mar 2024 19:56:04 +0300 Subject: [PATCH] dev@locazia: fix misprint --- app/api/routes/node_storage.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/api/routes/node_storage.py b/app/api/routes/node_storage.py index efdda10..807b71a 100644 --- a/app/api/routes/node_storage.py +++ b/app/api/routes/node_storage.py @@ -39,11 +39,11 @@ async def s_api_v1_storage_post(request): 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 { + return response.json({ "content_sha256": file_hash, "content_id_v1": stored_cid, "content_url": f"dmy://storage?cid={stored_cid}", - } + }) new_content = StoredContent( type="local/content_bin",