diff options
Diffstat (limited to 'graphql/resolvers/repo_mutation.go')
-rw-r--r-- | graphql/resolvers/repo_mutation.go | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/graphql/resolvers/repo_mutation.go b/graphql/resolvers/repo_mutation.go deleted file mode 100644 index 0c28cc0d..00000000 --- a/graphql/resolvers/repo_mutation.go +++ /dev/null @@ -1,20 +0,0 @@ -package resolvers - -import ( - "context" - "github.com/MichaelMure/git-bug/bug" - "github.com/MichaelMure/git-bug/graphql/models" -) - -type repoMutationResolver struct{} - -func (repoMutationResolver) NewBug(ctx context.Context, obj *models.RepositoryMutation, title string, message string) (bug.Snapshot, error) { - b, err := obj.Repo.NewBug(title, message) - if err != nil { - return bug.Snapshot{}, err - } - - snap := b.Snapshot() - - return *snap, nil -} |