diff options
| author | eal <eal@waifu.club> | 2018-06-11 22:53:38 +0300 | 
|---|---|---|
| committer | eal <eal@waifu.club> | 2018-06-11 22:53:38 +0300 | 
| commit | 18837c2fedfc5dc79e78751d5b1b16ea1f0dce87 (patch) | |
| tree | c4b8a0c15545cafebb7932d74ad91bc140aa9c9e | |
| parent | dca1d6d16278599485df3a175fb356bdc995441c (diff) | |
| download | pleroma-18837c2fedfc5dc79e78751d5b1b16ea1f0dce87.tar.gz pleroma-18837c2fedfc5dc79e78751d5b1b16ea1f0dce87.zip | |
make_moderator.ex: set cache on update
| -rw-r--r-- | lib/mix/tasks/make_moderator.ex | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/lib/mix/tasks/make_moderator.ex b/lib/mix/tasks/make_moderator.ex index 20f04c54c..4d427cfd8 100644 --- a/lib/mix/tasks/make_moderator.ex +++ b/lib/mix/tasks/make_moderator.ex @@ -19,7 +19,7 @@ defmodule Mix.Tasks.SetModerator do          |> Map.put("is_moderator", !!moderator)        cng = User.info_changeset(user, %{info: info}) -      user = Repo.update!(cng) +      {:ok, user} = User.update_and_set_cache(cng)        IO.puts("Moderator status of #{nickname}: #{user.info["is_moderator"]}")      else | 
