fix
Browse files
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 |
|