feat: org id in get org response
Some checks failed
ci / lint_and_test (push) Failing after -2s

This commit is contained in:
Chris Milne 2026-06-08 14:16:45 +01:00
parent 00ed43e5ce
commit 76ef862d40
2 changed files with 2 additions and 0 deletions

View file

@ -61,6 +61,7 @@ async def get_org_by_id(org_model: org_model_root_claim_query_dependency):
Returns organisation details including key member email addresses
"""
response = {
"id": org_model.id,
"name": org_model.name,
"status": org_model.status,
"owner_contact": org_model.owner_contact_rel.email,

View file

@ -106,6 +106,7 @@ class OrgPatchContactResponse(CustomBaseModel):
organisation: OrgSchema
class OrgGetOrgResponse(CustomBaseModel):
id: int
name: str
status: Status
root_user: Optional[str] = None