From 16e8a437dafea40c11647e777a530716a2e2c4f0 Mon Sep 17 00:00:00 2001 From: Barnabas Jovanovics Date: Tue, 24 Sep 2024 17:46:09 +0200 Subject: [PATCH] filer out errors without a code --- lib/subscription/runner.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/subscription/runner.ex b/lib/subscription/runner.ex index fc39934a..889c9fbd 100644 --- a/lib/subscription/runner.ex +++ b/lib/subscription/runner.ex @@ -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