Skip to content

Commit

Permalink
reverted vote_summary vote select to eager load
Browse files Browse the repository at this point in the history
  • Loading branch information
Oaphi committed Jan 3, 2025
1 parent b317c40 commit a232e80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/users_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ def my_vote_summary

def vote_summary
@votes = Vote.where(recv_user: @user)
.joins(:post)
.includes(:post)
.group(:date_of, :post_id, :vote_type)

@votes = @votes.select(:post_id, :vote_type)
Expand Down

0 comments on commit a232e80

Please sign in to comment.