diff options
author | Michael Muré <batolettre@gmail.com> | 2024-08-25 20:40:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-25 18:40:23 +0000 |
commit | 3a4b8805dfd794cc25f57e99c73ddec651805af1 (patch) | |
tree | b6af67c761c96b323400d061db22ceed73fb0bb0 /api/graphql/resolvers/bug.go | |
parent | c3ff05f95bdfad6c2ea4cb899024fd47ac503b5f (diff) | |
download | git-bug-3a4b8805dfd794cc25f57e99c73ddec651805af1.tar.gz |
core: make label a common type, in a similar fashion as for status (#1252)
This will be useful for Board, and likely code review support later
Diffstat (limited to 'api/graphql/resolvers/bug.go')
-rw-r--r-- | api/graphql/resolvers/bug.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/api/graphql/resolvers/bug.go b/api/graphql/resolvers/bug.go index d5c13e06..c984e191 100644 --- a/api/graphql/resolvers/bug.go +++ b/api/graphql/resolvers/bug.go @@ -51,7 +51,7 @@ func (bugResolver) Comments(_ context.Context, obj models.BugWrapper, after *str return nil, err } - return connections.CommentCon(comments, edger, conMaker, input) + return connections.Connection(comments, edger, conMaker, input) } func (bugResolver) Operations(_ context.Context, obj models.BugWrapper, after *string, before *string, first *int, last *int) (*models.OperationConnection, error) { @@ -83,7 +83,7 @@ func (bugResolver) Operations(_ context.Context, obj models.BugWrapper, after *s return nil, err } - return connections.OperationCon(ops, edger, conMaker, input) + return connections.Connection(ops, edger, conMaker, input) } func (bugResolver) Timeline(_ context.Context, obj models.BugWrapper, after *string, before *string, first *int, last *int) (*models.TimelineItemConnection, error) { @@ -115,7 +115,7 @@ func (bugResolver) Timeline(_ context.Context, obj models.BugWrapper, after *str return nil, err } - return connections.TimelineItemCon(timeline, edger, conMaker, input) + return connections.Connection(timeline, edger, conMaker, input) } func (bugResolver) Actors(_ context.Context, obj models.BugWrapper, after *string, before *string, first *int, last *int) (*models.IdentityConnection, error) { @@ -147,7 +147,7 @@ func (bugResolver) Actors(_ context.Context, obj models.BugWrapper, after *strin return nil, err } - return connections.IdentityCon(actors, edger, conMaker, input) + return connections.Connection(actors, edger, conMaker, input) } func (bugResolver) Participants(_ context.Context, obj models.BugWrapper, after *string, before *string, first *int, last *int) (*models.IdentityConnection, error) { @@ -179,5 +179,5 @@ func (bugResolver) Participants(_ context.Context, obj models.BugWrapper, after return nil, err } - return connections.IdentityCon(participants, edger, conMaker, input) + return connections.Connection(participants, edger, conMaker, input) } |