aboutsummaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2022-11-13 12:31:38 +0100
committerMichael Muré <batolettre@gmail.com>2022-11-13 12:31:38 +0100
commit3c6ebc2bfd50b72ff786a2cfd3bbdeb15b478dd3 (patch)
tree8cf4307bf48f016e0f8728c311bcc53ce38432e3 /api
parent55a2e8e4485fe63fbda759540958c7190dfeb85c (diff)
downloadgit-bug-3c6ebc2bfd50b72ff786a2cfd3bbdeb15b478dd3.tar.gz
core: bubble up the comment ID when created, or edited the first comment
Diffstat (limited to 'api')
-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,