Skip to content

Commit

Permalink
patch agreed_terms field for user settings (#853)
Browse files Browse the repository at this point in the history
* patch agreed_terms field for user settings

* Linting

---------

Co-authored-by: munrojm <jmunro@lbl.gov>
  • Loading branch information
yang-ruoxi and munrojm committed Oct 9, 2023
1 parent 6215e93 commit cc97851
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mp_api/client/routes/_user_settings.py
Expand Up @@ -46,10 +46,11 @@ def patch_user_settings(self, consumer_id, settings): # pragma: no cover
"sector",
"job_role",
"is_email_subscribed",
"agreed_terms",
]:
raise ValueError(
f"Invalid setting key {key}. Must be one of"
"institution, sector, job_role, is_email_subscribed"
"institution, sector, job_role, is_email_subscribed, agreed_terms"
)
body[f"settings.{key}"] = settings[key]

Expand Down

0 comments on commit cc97851

Please sign in to comment.