Fixed default thread fields

graph-rework-2
noah metz 2023-07-21 18:07:49 -06:00
parent f09a1db2d4
commit e51e823b19
1 changed files with 5 additions and 6 deletions

@ -53,12 +53,6 @@ func AddThreadFields(obj *graphql.Object) {
Type: GQLInterfaceThread.Type, Type: GQLInterfaceThread.Type,
Resolve: GQLThreadParent, Resolve: GQLThreadParent,
}) })
obj.AddFieldConfig("Listen", &graphql.Field{
Type: graphql.String,
Resolve: GQLThreadListen,
})
} }
var GQLTypeUser = NewSingleton(func() *graphql.Object { var GQLTypeUser = NewSingleton(func() *graphql.Object {
@ -113,6 +107,11 @@ var GQLTypeGQLThread = NewSingleton(func() *graphql.Object {
Resolve: GQLThreadUsers, Resolve: GQLThreadUsers,
}) })
gql_type_gql_thread.AddFieldConfig("Listen", &graphql.Field{
Type: graphql.String,
Resolve: GQLThreadListen,
})
return gql_type_gql_thread return gql_type_gql_thread
}, nil) }, nil)