Skip to content

Commit

Permalink
server/product: fix product update when changing legacy pricing
Browse files Browse the repository at this point in the history
  • Loading branch information
frankie567 committed Feb 18, 2025
1 parent 208e29d commit 6477b56
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/polar/product/service/product.py
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,9 @@ async def update(
product.stripe_product_id, **product_update
)

if update_schema.recurring_interval is not None:
product.recurring_interval = update_schema.recurring_interval

existing_prices: set[ProductPrice] = set()
added_prices: list[ProductPrice] = []
if update_schema.prices is not None:
Expand Down

0 comments on commit 6477b56

Please sign in to comment.