aboutsummaryrefslogtreecommitdiffstats
path: root/api/graphql/resolvers/mutation.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2022-11-15 12:25:48 +0100
committerGitHub <noreply@github.com>2022-11-15 12:25:48 +0100
commit9b393b487308da156c5988bb7c2d2747f7b7f8aa (patch)
tree8cf4307bf48f016e0f8728c311bcc53ce38432e3 /api/graphql/resolvers/mutation.go
parent55a2e8e4485fe63fbda759540958c7190dfeb85c (diff)
parent3c6ebc2bfd50b72ff786a2cfd3bbdeb15b478dd3 (diff)
downloadgit-bug-9b393b487308da156c5988bb7c2d2747f7b7f8aa.tar.gz
Merge pull request #913 from MichaelMure/comment-id-fix
core: bubble up the comment ID when created, or edited the first comment
Diffstat (limited to 'api/graphql/resolvers/mutation.go')
-rw-r--r--api/graphql/resolvers/mutation.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/api/graphql/resolvers/mutation.go b/api/graphql/resolvers/mutation.go
index f6296d63..3f9f7fe1 100644
--- a/api/graphql/resolvers/mutation.go
+++ b/api/graphql/resolvers/mutation.go
@@ -78,7 +78,7 @@ func (r mutationResolver) AddComment(ctx context.Context, input models.AddCommen
return nil, err
}
- op, err := b.AddCommentRaw(author,
+ _, op, err := b.AddCommentRaw(author,
time.Now().Unix(),
text.Cleanup(input.Message),
input.Files,
@@ -110,7 +110,7 @@ func (r mutationResolver) AddCommentAndClose(ctx context.Context, input models.A
return nil, err
}
- opAddComment, err := b.AddCommentRaw(author,
+ _, opAddComment, err := b.AddCommentRaw(author,
time.Now().Unix(),
text.Cleanup(input.Message),
input.Files,
@@ -148,7 +148,7 @@ func (r mutationResolver) AddCommentAndReopen(ctx context.Context, input models.
return nil, err
}
- opAddComment, err := b.AddCommentRaw(author,
+ _, opAddComment, err := b.AddCommentRaw(author,
time.Now().Unix(),
text.Cleanup(input.Message),
input.Files,