benjolo commited on
Commit
b311a79
1 Parent(s): 8fd32c3

Update backend/mongodb/operations/calls.py

Browse files
backend/mongodb/operations/calls.py CHANGED
@@ -7,7 +7,7 @@ from ..models.calls import UpdateCall, UserCall, UserCaptions
7
  def list_calls(collection, limit: int):
8
  try:
9
  calls = collection.find(limit = limit)
10
- return calls
11
  except:
12
  raise HTTPException(status_code=status.HTTP_404_NOT_FOUND, detail=f"No existing call records yet.")
13
 
 
7
  def list_calls(collection, limit: int):
8
  try:
9
  calls = collection.find(limit = limit)
10
+ return list(calls)
11
  except:
12
  raise HTTPException(status_code=status.HTTP_404_NOT_FOUND, detail=f"No existing call records yet.")
13