Skip to content

Commit

Permalink
filer out errors without a code
Browse files Browse the repository at this point in the history
  • Loading branch information
barnabasJ committed Sep 24, 2024
1 parent 76d4c86 commit 16e8a43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/subscription/runner.ex
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ defmodule AshGraphql.Subscription.Runner do
# and the user can not really do anything usefull with it
not (errors
|> List.wrap()
|> Enum.any?(fn error -> Map.get(error, :code) in ["forbidden", "not_found"] end))
|> Enum.any?(fn error -> Map.get(error, :code) in ["forbidden", "not_found", nil] end))
end

defp should_send?(_), do: true
Expand Down

0 comments on commit 16e8a43

Please sign in to comment.