Fix BaseLockable gql type
This commit is contained in:
parent
82ae5279b0
commit
2c0fced413
2
gql.go
2
gql.go
|
|
@ -454,7 +454,7 @@ func MakeGQLHandlers(ctx * GraphContext, server * GQLThread) (func(http.Response
|
|||
valid_nodes := map[reflect.Type]*graphql.Object{}
|
||||
valid_lockables := map[reflect.Type]*graphql.Object{}
|
||||
valid_threads := map[reflect.Type]*graphql.Object{}
|
||||
valid_lockables[reflect.TypeOf((*BaseLockable)(nil))] = GQLTypeBaseNode()
|
||||
valid_lockables[reflect.TypeOf((*BaseLockable)(nil))] = GQLTypeBaseLockable()
|
||||
for t, v := range(valid_lockables) {
|
||||
valid_nodes[t] = v
|
||||
}
|
||||
|
|
|
|||
|
|
@ -560,7 +560,6 @@ func GQLTypeBaseLockable() * graphql.Object {
|
|||
IsTypeOf: func(p graphql.IsTypeOfParams) bool {
|
||||
ctx, ok := p.Context.Value("graph_context").(*GraphContext)
|
||||
if ok == false {
|
||||
panic("PANIC_AT_THE_DISCO")
|
||||
return false
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue