User fetch should not just error

This commit is contained in:
FloatingGhost 2022-11-18 10:34:21 +00:00
parent d4ca1217d3
commit a66ae2f15b

View file

@ -1910,7 +1910,8 @@ def get_or_fetch_by_ap_id(ap_id) do
{%User{} = user, _} ->
{:ok, user}
_ ->
e ->
Logger.error("Could not fetch user, #{inspect(e)}")
{:error, :not_found}
end
end