Commit d2636220 by Javier

Erratas

parent b1b0e0d7
......@@ -213,6 +213,7 @@ def create_account(account: Account = Depends()):
"""
if not mbilling.functions.get_user(account.number):
plan_id, offer_id = encode_rate(account.rate)
# Generación de la Cuenta
......@@ -251,6 +252,9 @@ def create_account(account: Account = Depends()):
status_code=400
)
else:
response = JSONResponse(content={'error' : 'El número ya está registrado en MagnusBilling'}, status_code=409)
return response
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment