refactor(api): replace sage dependency with direct sage_client usage
This commit is contained in:
parent
bcee1f277f
commit
268dfb3618
1 changed files with 2 additions and 2 deletions
4
api.py
4
api.py
|
|
@ -176,10 +176,10 @@ app.include_router(universign_router)
|
|||
@app.get("/clients", response_model=List[ClientDetails], tags=["Clients"])
|
||||
async def obtenir_clients(
|
||||
query: Optional[str] = Query(None),
|
||||
sage: SageGatewayClient = Depends(get_sage_client_for_user),
|
||||
#sage: SageGatewayClient = Depends(get_sage_client_for_user),
|
||||
):
|
||||
try:
|
||||
clients = sage.lister_clients(filtre=query or "")
|
||||
clients = sage_client.lister_clients(filtre=query or "")
|
||||
return [ClientDetails(**c) for c in clients]
|
||||
except Exception as e:
|
||||
logger.error(f"Erreur recherche clients: {e}")
|
||||
|
|
|
|||
Loading…
Reference in a new issue