Fix compilation errors

Sascha created

Change summary

api/graphql/models/gen_models.go  | 5 ++++-
api/graphql/resolvers/mutation.go | 2 +-
2 files changed, 5 insertions(+), 2 deletions(-)

Detailed changes

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"`

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
 	}