Commit f584a603 authored by kaniini's avatar kaniini

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

parent 2c3bfd7f
......@@ -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
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment