Skip to content

Commit

Permalink
Fix already_done[key] check, but still a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
nimmolo committed Jan 31, 2024
1 parent 446678e commit fd0530e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/vote.rb
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ def self.update_observation_views_reviewed_column
new_entries = []
Vote.where.not(user_id: 0).
select(:observation_id, :user_id, :updated_at).each do |v|
next if already_done[v.observation_id, v.user_id].exist?
next if already_done[[v.observation_id, v.user_id]].exist?

new_entries << {
observation_id: v.observation_id,
Expand Down

0 comments on commit fd0530e

Please sign in to comment.