diff options
Diffstat (limited to 'api/graphql/resolvers/label.go')
-rw-r--r-- | api/graphql/resolvers/label.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/api/graphql/resolvers/label.go b/api/graphql/resolvers/label.go index 8fe6c8e5..3e63b655 100644 --- a/api/graphql/resolvers/label.go +++ b/api/graphql/resolvers/label.go @@ -5,18 +5,18 @@ import ( "image/color" "github.com/git-bug/git-bug/api/graphql/graph" - "github.com/git-bug/git-bug/entities/bug" + "github.com/git-bug/git-bug/entities/common" ) var _ graph.LabelResolver = &labelResolver{} type labelResolver struct{} -func (labelResolver) Name(ctx context.Context, obj *bug.Label) (string, error) { +func (labelResolver) Name(ctx context.Context, obj *common.Label) (string, error) { return obj.String(), nil } -func (labelResolver) Color(ctx context.Context, obj *bug.Label) (*color.RGBA, error) { +func (labelResolver) Color(ctx context.Context, obj *common.Label) (*color.RGBA, error) { rgba := obj.Color().RGBA() return &rgba, nil } |