Update user cache when user tags are updated

This commit is contained in:
eugenijm 2019-02-19 10:43:37 +03:00
parent a39a094cda
commit fc35481445

View file

@ -1200,7 +1200,7 @@ defp update_tags(%User{} = user, new_tags) do
{:ok, updated_user} =
user
|> change(%{tags: new_tags})
|> Repo.update()
|> update_and_set_cache()
updated_user
end