Corrected error "Object of type Decimal is not JSON serializable"
This commit is contained in:
parent
3809d3403b
commit
c47c2c43fb
1 changed files with 2 additions and 2 deletions
4
api.py
4
api.py
|
|
@ -2273,11 +2273,11 @@ async def ajouter_client(
|
|||
|
||||
logger.info(f"✅ Client créé via API: {nouveau_client.get('numero')}")
|
||||
|
||||
return {
|
||||
return jsonable_encoder({
|
||||
"success": True,
|
||||
"message": "Client créé avec succès",
|
||||
"data": nouveau_client,
|
||||
}
|
||||
})
|
||||
|
||||
except Exception as e:
|
||||
logger.error(f"Erreur lors de la création du client: {e}")
|
||||
|
|
|
|||
Loading…
Reference in a new issue