diff options
Diffstat (limited to 'api/graphql/resolvers/comment.go')
-rw-r--r-- | api/graphql/resolvers/comment.go | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/api/graphql/resolvers/comment.go b/api/graphql/resolvers/comment.go deleted file mode 100644 index 01c17416..00000000 --- a/api/graphql/resolvers/comment.go +++ /dev/null @@ -1,22 +0,0 @@ -package resolvers - -import ( - "context" - - "github.com/git-bug/git-bug/api/graphql/graph" - "github.com/git-bug/git-bug/api/graphql/models" - "github.com/git-bug/git-bug/entities/bug" - "github.com/git-bug/git-bug/entity" -) - -var _ graph.CommentResolver = &commentResolver{} - -type commentResolver struct{} - -func (c commentResolver) ID(ctx context.Context, obj *bug.Comment) (entity.CombinedId, error) { - return obj.CombinedId(), nil -} - -func (c commentResolver) Author(_ context.Context, obj *bug.Comment) (models.IdentityWrapper, error) { - return models.NewLoadedIdentity(obj.Author), nil -} |