Merge branch 'fix/mix-task-caching' into 'develop'

make_moderator.ex: set cache on update

See merge request pleroma/pleroma!206
This commit is contained in:
eal 2018-06-11 19:59:30 +00:00
commit cdf5a668f2

View File

@ -19,7 +19,7 @@ def run([nickname | rest]) 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