aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--api/graphql/models/gen_models.go5
-rw-r--r--api/graphql/resolvers/mutation.go2
2 files changed, 5 insertions, 2 deletions
diff --git a/api/graphql/models/gen_models.go b/api/graphql/models/gen_models.go
index 5bf8ea9e..5a120f57 100644
--- a/api/graphql/models/gen_models.go
+++ b/api/graphql/models/gen_models.go
@@ -8,6 +8,7 @@ import (
"strconv"
"github.com/MichaelMure/git-bug/bug"
+ "github.com/MichaelMure/git-bug/entity"
"github.com/MichaelMure/git-bug/repository"
)
@@ -45,7 +46,9 @@ type EditCommentInput struct {
RepoRef *string `json:"repoRef"`
// The bug ID's prefix.
Prefix string `json:"prefix"`
- // The first message of the new bug.
+ // Target
+ Target entity.Id `json:"target"`
+ // The new message to be set.
Message string `json:"message"`
// The collection of file's hash required for the first message.
Files []repository.Hash `json:"files"`
diff --git a/api/graphql/resolvers/mutation.go b/api/graphql/resolvers/mutation.go
index 59e93cdd..60746b8b 100644
--- a/api/graphql/resolvers/mutation.go
+++ b/api/graphql/resolvers/mutation.go
@@ -100,7 +100,7 @@ func (r mutationResolver) EditComment(ctx context.Context, input models.EditComm
return nil, err
}
- op, err := b.EditCommentRaw(author, time.Now().Unix(), input.Message, input.Files, nil)
+ op, err := b.EditCommentRaw(author, time.Now().Unix(), input.Target, input.Message, nil)
if err != nil {
return nil, err
}