Fix specs.

This commit is contained in:
lain 2018-02-25 18:08:41 +01:00
commit 8a47974217
4 changed files with 7 additions and 6 deletions

View file

@ -14,6 +14,8 @@ defmodule Pleroma.Builders.UserBuilder do
end
def insert(data \\ %{}) do
Repo.insert(build(data))
{:ok, user} = Repo.insert(build(data))
User.invalidate_cache(user)
{:ok, user}
end
end