user: make User.delete() return data consistent with Object.delete()

This commit is contained in:
William Pitcock 2018-11-01 07:56:21 +00:00
parent 2c3bfd7f76
commit f584a603f9
2 changed files with 2 additions and 2 deletions

View file

@ -7,7 +7,7 @@ def run([nickname]) do
Mix.Task.run("app.start")
with %User{local: true} = user <- User.get_by_nickname(nickname) do
User.delete(user)
{:ok, _} = User.delete(user)
end
end
end

View file

@ -657,7 +657,7 @@ def delete(%User{} = user) do
end
end)
:ok
{:ok, user}
end
def html_filter_policy(%User{info: %{"no_rich_text" => true}}) do