From 4e3fc530db616655e0d372e5f91ab992582f20d1 Mon Sep 17 00:00:00 2001 From: eal Date: Wed, 18 Apr 2018 17:39:27 +0300 Subject: [PATCH] Fix rm_user task. --- lib/mix/tasks/rm_user.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.45.2