mirror of
https://github.com/MichaelMure/git-bug.git
synced 2024-12-15 02:01:43 +03:00
GraphQL: Add target to EditCommentInput
This commit is contained in:
parent
c6d15bd52b
commit
cc7788ad44
@ -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
|
||||
}
|
||||
|
@ -49,6 +49,8 @@ input EditCommentInput {
|
||||
repoRef: String
|
||||
"""The bug ID's prefix."""
|
||||
prefix: String!
|
||||
"""The target."""
|
||||
target: String!
|
||||
"""The new message to be set."""
|
||||
message: String!
|
||||
"""The collection of file's hash required for the first message."""
|
||||
|
Loading…
Reference in New Issue
Block a user