projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e153b36
)
Fix rm_user task.
author
eal
<eal@waifu.club>
Wed, 18 Apr 2018 14:39:27 +0000
(17:39 +0300)
committer
eal
<eal@waifu.club>
Wed, 18 Apr 2018 14:39:27 +0000
(17:39 +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 aa0cf4951536dd5a7528118615dd217e2f1d1744..96d112cfe0f2b6c71c95ad446b19257ca2ad01d6 100644
(file)
--- a/
lib/mix/tasks/rm_user.ex
+++ b/
lib/mix/tasks/rm_user.ex
@@
-1,14
+1,14
@@
defmodule Mix.Tasks.RmUser do
use Mix.Task
import Mix.Ecto
- alias Pleroma.
User
+ alias Pleroma.
{User, Repo}
@shortdoc "Permanently delete a user"
def run([nickname]) do
ensure_started(Repo, [])
with %User{local: true} = user <- User.get_by_nickname(nickname) do
-
user.delete(
)
+
User.delete(user
)
end
end
end