This commit is contained in:
Timothy J. Baek committed 2024-10-01 14:00:19 -07:00
1 parent a0fb4a9b84
commit fb083237cd
2 files changed
+2 -1

No files matched your search

@@ -176,7 +176,7 @@ async def get_file_text_content_by_id(id: str, user=Depends(get_verified_user)):
file = Files.get_file_by_id(id)
if file and (file.user_id == user.id or user.role == "admin"):
return {"text": file.meta.get("content", {}).get("text", None)}
return {"text": file.data.get("content")}
else:
raise HTTPException(
status_code=status.HTTP_404_NOT_FOUND,