brestok commited on
Commit
34c9c72
·
1 Parent(s): ed5ec6a

add features

Browse files
Files changed (1) hide show
  1. ocr/api/message/db_requests.py +1 -0
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