From: eal Date: Wed, 18 Apr 2018 14:39:27 +0000 (+0300) Subject: Fix rm_user task. X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=4e3fc530db616655e0d372e5f91ab992582f20d1;p=akkoma Fix rm_user task. --- diff --git a/lib/mix/tasks/rm_user.ex b/lib/mix/tasks/rm_user.ex index aa0cf4951..96d112cfe 100644 --- 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