Fixed default thread fields
parent
f09a1db2d4
commit
e51e823b19
11
gql_types.go
11
gql_types.go
|
|
@ -53,12 +53,6 @@ func AddThreadFields(obj *graphql.Object) {
|
|||
Type: GQLInterfaceThread.Type,
|
||||
Resolve: GQLThreadParent,
|
||||
})
|
||||
|
||||
obj.AddFieldConfig("Listen", &graphql.Field{
|
||||
Type: graphql.String,
|
||||
Resolve: GQLThreadListen,
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
var GQLTypeUser = NewSingleton(func() *graphql.Object {
|
||||
|
|
@ -113,6 +107,11 @@ var GQLTypeGQLThread = NewSingleton(func() *graphql.Object {
|
|||
Resolve: GQLThreadUsers,
|
||||
})
|
||||
|
||||
gql_type_gql_thread.AddFieldConfig("Listen", &graphql.Field{
|
||||
Type: graphql.String,
|
||||
Resolve: GQLThreadListen,
|
||||
})
|
||||
|
||||
return gql_type_gql_thread
|
||||
}, nil)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue