parent
6a90e03d40
commit
90943c3d18
1 changed files with 1 additions and 1 deletions
|
|
@ -241,7 +241,7 @@ async def remove_user_from_org(db: db_dependency, org_model: org_model_root_clai
|
||||||
status.HTTP_422_UNPROCESSABLE_CONTENT: {"description": "Invalid data in request."},
|
status.HTTP_422_UNPROCESSABLE_CONTENT: {"description": "Invalid data in request."},
|
||||||
status.HTTP_401_UNAUTHORIZED: {"description": "Not authorised. Must be org root user."},
|
status.HTTP_401_UNAUTHORIZED: {"description": "Not authorised. Must be org root user."},
|
||||||
})
|
})
|
||||||
async def get_contact(org_model: org_model_root_claim_query_dependency, contact_type: Annotated[ContactType, Query()]):
|
async def get_contact(org_model: org_model_root_claim_query_dependency, contact_type: Annotated[ContactType, Query(description="Must be billing|security|owner")]):
|
||||||
match contact_type:
|
match contact_type:
|
||||||
case "billing":
|
case "billing":
|
||||||
contact_model = org_model.billing_contact_rel
|
contact_model = org_model.billing_contact_rel
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue