else
{:ok, pem} = Salmon.generate_rsa_pem
info = Map.put(info, "keys", pem)
- res = Repo.update(Ecto.Changeset.change(user, info: info))
- User.invalidate_cache(user)
- res
+ Ecto.Changeset.change(user, info: info)
+ |> User.update_and_set_cache()
end
end
{:ok, data}
else
e ->
- Logger.debug(fn -> "Couldn't finger #{account}." end)
+ Logger.debug(fn -> "Couldn't finger #{account}" end)
Logger.debug(fn -> inspect(e) end)
{:error, e}
end