add features
Browse files
ocr/api/message/db_requests.py
CHANGED
@@ -26,6 +26,7 @@ async def get_all_chat_messages_obj(report_id: str) -> list[MessageModel]:
|
|
26 |
settings.DB_CLIENT.reports.find_one({"id": report_id})
|
27 |
)
|
28 |
messages = [MessageModel.from_mongo(message) for message in messages]
|
|
|
29 |
if not report:
|
30 |
raise HTTPException(status_code=404, detail="Report not found")
|
31 |
return messages
|
|
|
26 |
settings.DB_CLIENT.reports.find_one({"id": report_id})
|
27 |
)
|
28 |
messages = [MessageModel.from_mongo(message) for message in messages]
|
29 |
+
|
30 |
if not report:
|
31 |
raise HTTPException(status_code=404, detail="Report not found")
|
32 |
return messages
|