Allow update_credentials to update User.language
This commit is contained in:
parent
0149ea4538
commit
396f036b13
|
@ -221,6 +221,7 @@ def update_credentials(%{assigns: %{user: user}, body_params: params} = conn, _p
|
||||||
# Note: param name is indeed :discoverable (not an error)
|
# Note: param name is indeed :discoverable (not an error)
|
||||||
|> Maps.put_if_present(:is_discoverable, params[:discoverable])
|
|> Maps.put_if_present(:is_discoverable, params[:discoverable])
|
||||||
|> Maps.put_if_present(:birthday, params[:birthday])
|
|> Maps.put_if_present(:birthday, params[:birthday])
|
||||||
|
|> Maps.put_if_present(:language, params[:language])
|
||||||
|
|
||||||
# What happens here:
|
# What happens here:
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in New Issue