Skip to content

Commit

Permalink
change IS NOT query to != (#8618)
Browse files Browse the repository at this point in the history
  • Loading branch information
noi5e authored Dec 20, 2020
1 parent b6783d3 commit eeb544f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/comment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ def likers

def user_reactions_map
# select likes from users that aren't banned (status = 0)
likes_map = likes.joins(:user).select(:emoji_type, :username, :status).where("emoji_type IS NOT NULL").where("status IS NOT 0").group_by(&:emoji_type)
likes_map = likes.joins(:user).select(:emoji_type, :username, :status).where("emoji_type IS NOT NULL").where("status != 0").group_by(&:emoji_type)
user_like_map = {}
likes_map.each do |reaction, likes|
users = []
Expand Down

0 comments on commit eeb544f

Please sign in to comment.