mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-12-23 08:36:29 +00:00
rm_user: also ensure that cache is running.
This commit is contained in:
parent
8b5ea91f68
commit
b586ead6b8
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ defmodule Mix.Tasks.RmUser do
|
||||||
|
|
||||||
@shortdoc "Permanently delete a user"
|
@shortdoc "Permanently delete a user"
|
||||||
def run([nickname]) do
|
def run([nickname]) do
|
||||||
ensure_started(Repo, [])
|
Mix.Task.run("app.start")
|
||||||
|
|
||||||
with %User{local: true} = user <- User.get_by_nickname(nickname) do
|
with %User{local: true} = user <- User.get_by_nickname(nickname) do
|
||||||
User.delete(user)
|
User.delete(user)
|
||||||
|
|
Loading…
Reference in a new issue