projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4478b91
)
Switch to User.delete for rm_user task
author
Phenethylamine
<phenethylamine@tutanota.com>
Thu, 12 Apr 2018 18:30:53 +0000
(14:30 -0400)
committer
Phenethylamine
<phenethylamine@tutanota.com>
Thu, 12 Apr 2018 18:30:53 +0000
(14:30 -0400)
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 30196d502c3009332b6c03866c568ed15074d2cc..aa0cf4951536dd5a7528118615dd217e2f1d1744 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.
{Repo, User}
+ alias Pleroma.
User
@shortdoc "Permanently delete a user"
def run([nickname]) do
ensure_started(Repo, [])
with %User{local: true} = user <- User.get_by_nickname(nickname) do
-
Repo.delete!(user
)
+
user.delete(
)
end
end
end