diff --git a/models/issue_reaction.go b/models/issue_reaction.go index 9e229d5a3102d..6896eeeafc6c4 100644 --- a/models/issue_reaction.go +++ b/models/issue_reaction.go @@ -69,7 +69,7 @@ func findReactions(e Engine, opts FindReactionsOptions) ([]*Reaction, error) { reactions := make([]*Reaction, 0, 10) sess := e.Where(opts.toConds()) return reactions, sess. - In("reaction.type", setting.UI.Reactions). + In("reaction.`type`", setting.UI.Reactions). Asc("reaction.issue_id", "reaction.comment_id", "reaction.created_unix", "reaction.id"). Find(&reactions) }