Modified client's retrieving method on creating a new contact
This commit is contained in:
parent
18699a8673
commit
8859152379
1 changed files with 1 additions and 1 deletions
2
api.py
2
api.py
|
|
@ -5996,7 +5996,7 @@ async def get_document_pdf(
|
|||
async def creer_contact(numero: str, contact: ContactCreate):
|
||||
try:
|
||||
try:
|
||||
sage_client.obtenir_client(numero)
|
||||
sage_client.lire_client(numero)
|
||||
except:
|
||||
raise HTTPException(404, f"Client {numero} non trouvé")
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue