dev@locazia: fast fixes
This commit is contained in:
parent
44fcc5128c
commit
583c8b93c5
|
|
@ -37,9 +37,9 @@ async def s_api_v1_storage_post(request):
|
||||||
file_hash = b58encode(hashlib.sha256(file_content).digest()).decode()
|
file_hash = b58encode(hashlib.sha256(file_content).digest()).decode()
|
||||||
new_content = StoredContent(
|
new_content = StoredContent(
|
||||||
type="local/content_bin",
|
type="local/content_bin",
|
||||||
|
user_id=request.ctx.user.id,
|
||||||
hash=file_hash,
|
hash=file_hash,
|
||||||
filename=file_name,
|
filename=file_name,
|
||||||
user_id=None,
|
|
||||||
meta=file_meta,
|
meta=file_meta,
|
||||||
created=datetime.now(),
|
created=datetime.now(),
|
||||||
key_id=None
|
key_id=None
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue