diff --git a/app/models/product_import/entry_processor.rb b/app/models/product_import/entry_processor.rb index dd6a8c3b3d..2e8ed9592c 100644 --- a/app/models/product_import/entry_processor.rb +++ b/app/models/product_import/entry_processor.rb @@ -46,10 +46,7 @@ module ProductImport products_count = if settings.importing_into_inventory? - VariantOverride.where( - 'variant_overrides.hub_id IN (?)', - enterprise_id - ).count + VariantOverride.for_hubs([enterprise_id]).count else Spree::Variant. not_deleted.