User fetch should not just error
This commit is contained in:
parent
d4ca1217d3
commit
a66ae2f15b
1 changed files with 2 additions and 1 deletions
|
@ -1910,7 +1910,8 @@ def get_or_fetch_by_ap_id(ap_id) do
|
||||||
{%User{} = user, _} ->
|
{%User{} = user, _} ->
|
||||||
{:ok, user}
|
{:ok, user}
|
||||||
|
|
||||||
_ ->
|
e ->
|
||||||
|
Logger.error("Could not fetch user, #{inspect(e)}")
|
||||||
{:error, :not_found}
|
{:error, :not_found}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue