Skip to content

Commit 2ae5955

Browse files
committed
add missing bind statement
1 parent 83343fa commit 2ae5955

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

routers/api/v1/api.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -674,8 +674,8 @@ func RegisterRoutes(m *macaron.Macaron) {
674674
Delete(repo.DeleteIssueCommentDeprecated)
675675
m.Combo("/reactions").
676676
Get(bind(api.CommentReactionList{}), repo.GetCommentReactions).
677-
Put(reqToken(), api.CommentReaction{}, repo.AddCommentReaction).
678-
Delete(reqToken(), api.CommentReaction{}, repo.DelCommentReaction)
677+
Put(reqToken(), bind(api.CommentReaction{}), repo.AddCommentReaction).
678+
Delete(reqToken(), bind(api.CommentReaction{}), repo.DelCommentReaction)
679679
})
680680
})
681681

0 commit comments

Comments
 (0)