From 416c47f1477781b16c914e1131d998b9659cd748 Mon Sep 17 00:00:00 2001 From: Noah Metz Date: Mon, 19 Jun 2023 14:56:06 -0600 Subject: [PATCH] Fixed valid_events and valid_resources --- gql.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gql.go b/gql.go index 72f9dea..f396622 100644 --- a/gql.go +++ b/gql.go @@ -934,7 +934,11 @@ func MakeGQLHandlers(server * GQLServer) (func(http.ResponseWriter, *http.Reques gql_types := []graphql.Type{GQLTypeBaseEvent(), GQLTypeEventQueue(), GQLTypeSignal(), GQLTypeSignalInput()} for go_t, gql_t := range(server.extended_types) { - valid_events[go_t] = gql_t + if _, ok := go_t.(Event); ok { + valid_events[go_t] = gql_t + } else if _, ok := go_t.(Resource); ok { + valid_resources[go_t] = gql_t + } gql_types = append(gql_types, gql_t) }