Reverting reaction count fix

This commit is contained in:
Ruben Oussoren 2024-12-27 09:25:23 -05:00
parent b43dd98fd1
commit 21753cb5f6
No known key found for this signature in database
GPG Key ID: 85F2F1725142D8C2
1 changed files with 0 additions and 9 deletions

View File

@ -2988,15 +2988,6 @@ class BulkImport::Generic < BulkImport::Base
end
reaction_users.close
puts "", "Updating reaction counts..."
ActiveRecord::Base.transaction do
DiscourseReactions::Reaction.find_each do |reaction|
actual_count = DiscourseReactions::ReactionUser.where(reaction_id: reaction.id).count
reaction.update_column(:reaction_users_count, actual_count)
end
end
end
def import_reactions