From 44fcc5128cde6d4a3bf9cf924e0f09abcbc1919d Mon Sep 17 00:00:00 2001 From: user Date: Mon, 4 Mar 2024 17:45:16 +0300 Subject: [PATCH] dev@locazia: add type to content --- app/api/routes/node_storage.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/api/routes/node_storage.py b/app/api/routes/node_storage.py index 0206857..a6f6424 100644 --- a/app/api/routes/node_storage.py +++ b/app/api/routes/node_storage.py @@ -36,6 +36,7 @@ async def s_api_v1_storage_post(request): try: file_hash = b58encode(hashlib.sha256(file_content).digest()).decode() new_content = StoredContent( + type="local/content_bin", hash=file_hash, filename=file_name, user_id=None,