rm_user: also ensure that cache is running.

This commit is contained in:
eal 2018-04-18 17:49:33 +03:00
parent 4e3fc530db
commit 52385f498e
1 changed files with 1 additions and 1 deletions

View File

@ -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)