rm_user: also ensure that cache is running.
authoreal <eal@waifu.club>
Wed, 18 Apr 2018 14:52:25 +0000 (17:52 +0300)
committereal <eal@waifu.club>
Wed, 18 Apr 2018 14:52:25 +0000 (17:52 +0300)
lib/mix/tasks/rm_user.ex

index 96d112cfe0f2b6c71c95ad446b19257ca2ad01d6..6a698f3600e834b9b329beb3d277669740b880a2 100644 (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)