From b586ead6b815897e1993c4977aeafa0338a3945b Mon Sep 17 00:00:00 2001 From: eal Date: Wed, 18 Apr 2018 17:52:25 +0300 Subject: [PATCH] rm_user: also ensure that cache is running. --- lib/mix/tasks/rm_user.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)