From bbd575d8fa9be443a699ac40e93ccd207eb4b226 Mon Sep 17 00:00:00 2001 From: Tanmay Deep Sharma Date: Wed, 3 Jun 2026 11:27:16 +0530 Subject: [PATCH] refactor(billing): drop speculative String price_ids branch --- .../app/services/enterprise/billing/plan_configuration.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/enterprise/app/services/enterprise/billing/plan_configuration.rb b/enterprise/app/services/enterprise/billing/plan_configuration.rb index dffae7ff8..389dc4568 100644 --- a/enterprise/app/services/enterprise/billing/plan_configuration.rb +++ b/enterprise/app/services/enterprise/billing/plan_configuration.rb @@ -1,5 +1,5 @@ # Resolves Stripe price ids from CHATWOOT_CLOUD_PLANS per currency. -# A plan's `price_ids` may be a currency-keyed Hash, or a legacy Array/String (treated as usd). +# A plan's `price_ids` may be a currency-keyed Hash, or a legacy Array (treated as usd). module Enterprise::Billing::PlanConfiguration CLOUD_PLANS_CONFIG = 'CHATWOOT_CLOUD_PLANS'.freeze @@ -18,7 +18,6 @@ module Enterprise::Billing::PlanConfiguration case raw when Hash then raw.transform_keys { |key| Enterprise::Billing::Currencies.normalize(key) } when Array then { Enterprise::Billing::Currencies::DEFAULT => raw } - when String then { Enterprise::Billing::Currencies::DEFAULT => [raw] } else {} end end