fix: patch org contact

This commit is contained in:
Chris Milne 2026-06-01 14:27:50 +01:00
parent d85b0d6cd6
commit fc6990c43d

View file

@ -337,6 +337,8 @@ async def update_contact(db: db_dependency, org_model: org_model_root_claim_body
if hasattr(contact_model, key):
setattr(contact_model, key, value)
else:
if key == "contact_type" or key == "organisation_id":
continue
raise UnprocessableContentException("Invalid keys in update request")
db.flush()