diff options
| author | eal <eal@waifu.club> | 2018-06-11 19:59:30 +0000 | 
|---|---|---|
| committer | eal <eal@waifu.club> | 2018-06-11 19:59:30 +0000 | 
| commit | cdf5a668f2194d98ac2020babc4b10e4b01ab957 (patch) | |
| tree | ad45a2f7017ebb964c01fa2271d7b86a02dd53bc | |
| parent | 7f79b467b1b56ce9ac7f544aaa2b687dcae341c5 (diff) | |
| parent | 18837c2fedfc5dc79e78751d5b1b16ea1f0dce87 (diff) | |
| download | pleroma-cdf5a668f2194d98ac2020babc4b10e4b01ab957.tar.gz pleroma-cdf5a668f2194d98ac2020babc4b10e4b01ab957.zip | |
Merge branch 'fix/mix-task-caching' into 'develop'
make_moderator.ex: set cache on update
See merge request pleroma/pleroma!206
| -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 | 
