mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-10 11:19:19 +00:00
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:
commit
cdf5a668f2
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ defmodule Mix.Tasks.SetModerator do
|
||||||
|> Map.put("is_moderator", !!moderator)
|
|> Map.put("is_moderator", !!moderator)
|
||||||
|
|
||||||
cng = User.info_changeset(user, %{info: info})
|
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"]}")
|
IO.puts("Moderator status of #{nickname}: #{user.info["is_moderator"]}")
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue