From: Phenethylamine Date: Thu, 12 Apr 2018 18:30:53 +0000 (-0400) Subject: Switch to User.delete for rm_user task X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=13a64b82e3bc6c466460b47b85422010a23b6fce;p=akkoma Switch to User.delete for rm_user task --- diff --git a/lib/mix/tasks/rm_user.ex b/lib/mix/tasks/rm_user.ex index 30196d502..aa0cf4951 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.{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