Skip to content

Commit 83343fa

Browse files
committed
smal fix
1 parent a4b7914 commit 83343fa

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

modules/structs/issue_comment.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ type EditIssueCommentOption struct {
3737
}
3838

3939
type CommentReaction struct {
40-
Reaction string `json:"reaction""`
40+
Reaction string `json:"reaction"`
4141
Users []*string `json:"users"`
4242
Count int64 `json:"count"`
4343
}

routers/api/v1/repo/issue_comment.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -578,13 +578,13 @@ func setCommentReaction(ctx *context.APIContext, form api.CommentReaction, creat
578578

579579
if create {
580580
// Create Reaction
581-
_, err = models.CreateCommentReaction(user,issue,comment,form.Reaction)
581+
_, err = models.CreateCommentReaction(user, issue, comment, form.Reaction)
582582
if err != nil {
583583
ctx.Error(500, "CreateCommentReaction", err)
584584
}
585585
} else {
586586
// Delete Reaction
587-
err = models.DeleteCommentReaction(user,issue,comment,form.Reaction)
587+
err = models.DeleteCommentReaction(user, issue, comment, form.Reaction)
588588
if err != nil {
589589
ctx.Error(500, "DeleteCommentReaction", err)
590590
}

0 commit comments

Comments
 (0)