From e317cbb91b7212e0d855aec1dc9048ed6ae7224f Mon Sep 17 00:00:00 2001 From: Yaroslav Grishajev Date: Thu, 21 Nov 2024 10:54:17 +0100 Subject: [PATCH] fix(billing): only resolve with active stripe prices --- apps/api/src/billing/services/stripe/stripe.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/api/src/billing/services/stripe/stripe.service.ts b/apps/api/src/billing/services/stripe/stripe.service.ts index 034f9da5c..2f7558d03 100644 --- a/apps/api/src/billing/services/stripe/stripe.service.ts +++ b/apps/api/src/billing/services/stripe/stripe.service.ts @@ -62,7 +62,7 @@ export class StripeService extends Stripe { } async findPrices(): Promise { - const { data: prices } = await this.prices.list(); + const { data: prices } = await this.prices.list({ active: true }); const responsePrices = prices.map(price => ({ unitAmount: price.custom_unit_amount ? undefined : price.unit_amount / 100, isCustom: !!price.custom_unit_amount,