diff options
author | Sascha <GlancingMind@outlook.com> | 2021-03-16 17:29:56 +0100 |
---|---|---|
committer | Sascha <GlancingMind@outlook.com> | 2021-03-19 17:49:41 +0100 |
commit | cc7788ad44bbf6d3a272c15cd8858fb6dc3c1536 (patch) | |
tree | 0460dc4441a0c56d02677f31279c864609c65c88 /api/graphql/resolvers | |
parent | c6d15bd52b415b6fbc7a63e6072472402a1491d6 (diff) | |
download | git-bug-cc7788ad44bbf6d3a272c15cd8858fb6dc3c1536.tar.gz |
GraphQL: Add target to EditCommentInput
Diffstat (limited to 'api/graphql/resolvers')
-rw-r--r-- | api/graphql/resolvers/mutation.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/api/graphql/resolvers/mutation.go b/api/graphql/resolvers/mutation.go index 60746b8b..9cd936a6 100644 --- a/api/graphql/resolvers/mutation.go +++ b/api/graphql/resolvers/mutation.go @@ -5,6 +5,7 @@ import ( "time" "github.com/MichaelMure/git-bug/api/auth" + "github.com/MichaelMure/git-bug/entity" "github.com/MichaelMure/git-bug/api/graphql/graph" "github.com/MichaelMure/git-bug/api/graphql/models" "github.com/MichaelMure/git-bug/bug" @@ -100,7 +101,7 @@ func (r mutationResolver) EditComment(ctx context.Context, input models.EditComm return nil, err } - op, err := b.EditCommentRaw(author, time.Now().Unix(), input.Target, input.Message, nil) + op, err := b.EditCommentRaw(author, time.Now().Unix(), entity.Id(input.Target), input.Message, nil) if err != nil { return nil, err } |