dev@locazia: fix misprint
This commit is contained in:
parent
c1ed69b404
commit
916034993e
|
|
@ -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()
|
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 response.json({
|
||||||
"content_sha256": file_hash,
|
"content_sha256": file_hash,
|
||||||
"content_id_v1": stored_cid,
|
"content_id_v1": stored_cid,
|
||||||
"content_url": f"dmy://storage?cid={stored_cid}",
|
"content_url": f"dmy://storage?cid={stored_cid}",
|
||||||
}
|
})
|
||||||
|
|
||||||
new_content = StoredContent(
|
new_content = StoredContent(
|
||||||
type="local/content_bin",
|
type="local/content_bin",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue