Skip to content

Commit

Permalink
hotfix(Services.Repo): handle errors
Browse files Browse the repository at this point in the history
  • Loading branch information
thecristen committed Oct 3, 2023
1 parent 93e8209 commit d8ca79b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apps/services/lib/repo.ex
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,8 @@ defmodule Services.Repo do
defp handle_response(%JsonApi{data: data}) do
Enum.map(data, &Service.new/1)
end

defp handle_response({:error, [%JsonApi.Error{code: "not_found"}]}) do
[]
end
end

0 comments on commit d8ca79b

Please sign in to comment.