From: eal Date: Wed, 18 Apr 2018 14:52:25 +0000 (+0300) Subject: rm_user: also ensure that cache is running. X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=b586ead6b815897e1993c4977aeafa0338a3945b;p=akkoma rm_user: also ensure that cache is running. --- diff --git a/lib/mix/tasks/rm_user.ex b/lib/mix/tasks/rm_user.ex index 96d112cfe..6a698f360 100644 --- a/lib/mix/tasks/rm_user.ex +++ b/lib/mix/tasks/rm_user.ex @@ -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)