graph-rework-2
noah metz 2023-06-28 01:49:45 -06:00
parent e75171a9c5
commit 82ae5279b0
1 changed files with 2 additions and 1 deletions

@ -555,11 +555,12 @@ func GQLTypeBaseLockable() * graphql.Object {
Name: "BaseLockable", Name: "BaseLockable",
Interfaces: []*graphql.Interface{ Interfaces: []*graphql.Interface{
GQLInterfaceGraphNode(), GQLInterfaceGraphNode(),
gql_interface_lockable, GQLInterfaceLockable(),
}, },
IsTypeOf: func(p graphql.IsTypeOfParams) bool { IsTypeOf: func(p graphql.IsTypeOfParams) bool {
ctx, ok := p.Context.Value("graph_context").(*GraphContext) ctx, ok := p.Context.Value("graph_context").(*GraphContext)
if ok == false { if ok == false {
panic("PANIC_AT_THE_DISCO")
return false return false
} }