Fixed valid_events and valid_resources

graph-rework
noah metz 2023-06-19 14:56:06 -06:00
parent b67fef84ee
commit 416c47f147
1 changed files with 5 additions and 1 deletions

@ -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)
}