(fix:attach) pass attachment docs as it is

This commit is contained in:
ManishMadan2882 committed 2025-04-06 16:02:30 +05:30
1 parent a37bd76950
commit 244c9b96a2
1 file changed
+1 -6
+1 -6
View File
@@ -831,12 +831,7 @@ def get_attachments_content(attachment_ids, user):
})
if attachment_doc:
attachments.append({
"id": str(attachment_doc["_id"]),
"content": attachment_doc["content"],
"token_count": attachment_doc.get("token_count", 0),
"path": attachment_doc.get("path", "")
})
attachments.append(attachment_doc)
except Exception as e:
logger.error(f"Error retrieving attachment {attachment_id}: {e}")