From 2c8f741f9face8789bd16f58d8ee6d4619caa055 Mon Sep 17 00:00:00 2001 From: Noah Metz Date: Mon, 19 Jun 2023 15:53:32 -0600 Subject: [PATCH] Fix --- gql.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gql.go b/gql.go index faa177c..a5534b3 100644 --- a/gql.go +++ b/gql.go @@ -933,8 +933,8 @@ func MakeGQLHandlers(server * GQLServer) (func(http.ResponseWriter, *http.Reques valid_resources[reflect.TypeOf((*BaseResource)(nil))] = GQLTypeBaseResource() gql_types := []graphql.Type{GQLTypeBaseEvent(), GQLTypeEventQueue(), GQLTypeSignal(), GQLTypeSignalInput(), GQLTypeBaseNode()} - event_type := reflect.TypeOf((Event)(nil)) - resource_type := reflect.TypeOf((Resource)(nil)) + event_type := reflect.TypeOf((*Event)(nil)).Elem() + resource_type := reflect.TypeOf((*Resource)(nil)).Elem() for go_t, gql_t := range(server.extended_types) { if go_t.Implements(event_type) { valid_events[go_t] = gql_t