Skip to content

Commit

Permalink
fix(billing): only resolve with active stripe prices
Browse files Browse the repository at this point in the history
  • Loading branch information
ygrishajev committed Nov 21, 2024
1 parent 10ebeb7 commit e317cbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/api/src/billing/services/stripe/stripe.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export class StripeService extends Stripe {
}

async findPrices(): Promise<StripePrices[]> {
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,
Expand Down

0 comments on commit e317cbb

Please sign in to comment.