projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b5ea91
)
rm_user: also ensure that cache is running.
author
eal
<eal@waifu.club>
Wed, 18 Apr 2018 14:52:25 +0000
(17:52 +0300)
committer
eal
<eal@waifu.club>
Wed, 18 Apr 2018 14:52:25 +0000
(17:52 +0300)
lib/mix/tasks/rm_user.ex
patch
|
blob
|
history
diff --git
a/lib/mix/tasks/rm_user.ex
b/lib/mix/tasks/rm_user.ex
index 96d112cfe0f2b6c71c95ad446b19257ca2ad01d6..6a698f3600e834b9b329beb3d277669740b880a2 100644
(file)
--- 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)