🏷️(backend) accept string as saved document

Saved documents has to be a string now.
Before it has to be a json object.
This commit is contained in:
Anthony LC
2024-05-21 14:46:23 +02:00
committed by Anthony LC
parent 7aeea18202
commit 5c9e4ab3e6
7 changed files with 21 additions and 24 deletions

View File

@@ -344,7 +344,7 @@ class DocumentViewSet(
return drf_response.Response(
{
"content": json.loads(response["Body"].read()),
"content": response["Body"].read().decode("utf-8"),
"last_modified": response["LastModified"],
}
)