aboutsummaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorSascha <GlancingMind@outlook.com>2021-03-16 15:16:24 +0100
committerSascha <GlancingMind@outlook.com>2021-03-19 17:49:40 +0100
commitc6d15bd52b415b6fbc7a63e6072472402a1491d6 (patch)
tree352545539fcf41a14bf046f659596540fde85e2b /api
parent50cd1a9c177120a78e0c7f4e2f4238d2debfbfc6 (diff)
downloadgit-bug-c6d15bd52b415b6fbc7a63e6072472402a1491d6.tar.gz
Fix compilation errors
Diffstat (limited to 'api')
-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
}