benjolo commited on
Commit
1ff2578
·
verified ·
1 Parent(s): 4739c5a

Update backend/mongodb/operations/calls.py

Browse files
backend/mongodb/operations/calls.py CHANGED
@@ -11,7 +11,7 @@ def get_collection_calls(request: Request):
11
  except:
12
  raise HTTPException(status_code=status.HTTP_404_NOT_FOUND, detail=f"Unable to find call records Database.")
13
 
14
-
15
  def create_calls(collection, user: UserCall = Body(...)):
16
  calls = jsonable_encoder(user)
17
  # new_calls = get_collection_calls(request).insert_one(calls)
 
11
  except:
12
  raise HTTPException(status_code=status.HTTP_404_NOT_FOUND, detail=f"Unable to find call records Database.")
13
 
14
+ # Used within calls to create call record in main.py
15
  def create_calls(collection, user: UserCall = Body(...)):
16
  calls = jsonable_encoder(user)
17
  # new_calls = get_collection_calls(request).insert_one(calls)