aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreal <eal@waifu.club>2018-06-11 22:53:38 +0300
committereal <eal@waifu.club>2018-06-11 22:53:38 +0300
commit18837c2fedfc5dc79e78751d5b1b16ea1f0dce87 (patch)
treec4b8a0c15545cafebb7932d74ad91bc140aa9c9e
parentdca1d6d16278599485df3a175fb356bdc995441c (diff)
downloadpleroma-18837c2fedfc5dc79e78751d5b1b16ea1f0dce87.tar.gz
make_moderator.ex: set cache on update
-rw-r--r--lib/mix/tasks/make_moderator.ex2
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