diff --git a/app/serializers/v1/tax_serializer.rb b/app/serializers/v1/tax_serializer.rb index e0604858453..a1e86f6e47d 100644 --- a/app/serializers/v1/tax_serializer.rb +++ b/app/serializers/v1/tax_serializer.rb @@ -13,7 +13,8 @@ def serialize add_ons_count: model.add_ons.count, customers_count: model.customers_count, plans_count: model.plans.count, - charges_count: model.charges.count, + # DEPRECATED: this is creating a major performance issue + # charges_count: model.charges.count, commitments_count: model.commitments.count, created_at: model.created_at.iso8601 } diff --git a/spec/serializers/v1/tax_serializer_spec.rb b/spec/serializers/v1/tax_serializer_spec.rb index 9af144d1c75..73f1f959b47 100644 --- a/spec/serializers/v1/tax_serializer_spec.rb +++ b/spec/serializers/v1/tax_serializer_spec.rb @@ -19,7 +19,6 @@ 'add_ons_count' => 0, 'customers_count' => 0, 'plans_count' => 0, - 'charges_count' => 0, 'created_at' => tax.created_at.iso8601 ) end