brestok commited on
Commit
4e42b4c
·
1 Parent(s): f6238bd
Files changed (1) hide show
  1. cbh/api/calls/db_requests.py +2 -2
cbh/api/calls/db_requests.py CHANGED
@@ -349,7 +349,7 @@ async def check_call_payment(call_id: str) -> StripeCheckResponse:
349
  Check call payment.
350
  """
351
  call = await settings.DB_CLIENT.calls.find_one(
352
- {"id": call_id}, {"_id": 0, "status": 1, "event.isActive": 1}
353
  )
354
  if not call:
355
  raise HTTPException(status_code=404, detail="Call not found")
@@ -358,7 +358,7 @@ async def check_call_payment(call_id: str) -> StripeCheckResponse:
358
  return StripeCheckResponse(
359
  isProcessed=is_processed,
360
  success=success,
361
- isRequireRegistration=call["customer"]["status"] == AccountStatus.PENDING,
362
  )
363
 
364
 
 
349
  Check call payment.
350
  """
351
  call = await settings.DB_CLIENT.calls.find_one(
352
+ {"id": call_id}, {"_id": 0, "status": 1, "event.isActive": 1, "customer.status": 1}
353
  )
354
  if not call:
355
  raise HTTPException(status_code=404, detail="Call not found")
 
358
  return StripeCheckResponse(
359
  isProcessed=is_processed,
360
  success=success,
361
+ isRequireRegistration=call["customer"]["status"] == AccountStatus.PENDING.value,
362
  )
363
 
364