From 21753cb5f6e29b8acc13bfce08be3a5f186792d6 Mon Sep 17 00:00:00 2001 From: Ruben Oussoren Date: Fri, 27 Dec 2024 09:25:23 -0500 Subject: [PATCH] Reverting reaction count fix --- script/bulk_import/generic_bulk.rb | 9 --------- 1 file changed, 9 deletions(-) diff --git a/script/bulk_import/generic_bulk.rb b/script/bulk_import/generic_bulk.rb index 04b6c9625a4..20270f7f71a 100644 --- a/script/bulk_import/generic_bulk.rb +++ b/script/bulk_import/generic_bulk.rb @@ -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