fix: patch org contact
This commit is contained in:
parent
d85b0d6cd6
commit
fc6990c43d
1 changed files with 2 additions and 0 deletions
|
|
@ -337,6 +337,8 @@ async def update_contact(db: db_dependency, org_model: org_model_root_claim_body
|
||||||
if hasattr(contact_model, key):
|
if hasattr(contact_model, key):
|
||||||
setattr(contact_model, key, value)
|
setattr(contact_model, key, value)
|
||||||
else:
|
else:
|
||||||
|
if key == "contact_type" or key == "organisation_id":
|
||||||
|
continue
|
||||||
raise UnprocessableContentException("Invalid keys in update request")
|
raise UnprocessableContentException("Invalid keys in update request")
|
||||||
db.flush()
|
db.flush()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue