Allow update_credentials to update User.language

This commit is contained in:
Tusooa Zhu 2022-03-02 00:58:02 -05:00 committed by Sam Therapy
parent 8e1d3b5591
commit 4157fe8e11
Signed by: sam
GPG key ID: 4D8B07C18F31ACBD

View file

@ -221,6 +221,7 @@ def update_credentials(%{assigns: %{user: user}, body_params: params} = conn, _p
# Note: param name is indeed :discoverable (not an error)
|> Maps.put_if_present(:is_discoverable, params[:discoverable])
|> Maps.put_if_present(:birthday, params[:birthday])
|> Maps.put_if_present(:language, params[:language])
# What happens here:
#