Skip to content
Snippets Groups Projects
Commit 52385f49 authored by eal's avatar eal
Browse files

rm_user: also ensure that cache is running.

parent 4e3fc530
No related tags found
No related merge requests found
......@@ -5,7 +5,7 @@ defmodule Mix.Tasks.RmUser do
@shortdoc "Permanently delete a user"
def run([nickname]) do
ensure_started(Repo, [])
Mix.Task.run("app.start")
with %User{local: true} = user <- User.get_by_nickname(nickname) do
User.delete(user)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment