fix: update subscription next cycle end floored

This commit is contained in:
John Yeo
2026-01-16 14:37:41 +00:00
parent 71e1295c38
commit 0b6d767f8b
108 changed files with 3583 additions and 2846 deletions

View File

@@ -3,7 +3,6 @@ import {
type FeatureOptions,
type FullCusProduct,
type FullProduct,
formatPrice,
isPrepaidPrice,
priceToFeature,
type UpdateSubscriptionV0Params,
@@ -28,16 +27,6 @@ export const setupFeatureQuantitiesContext = ({
}): FeatureOptions[] => {
const options: FeatureOptions[] = [];
console.log(
"Full product prices:",
fullProduct.prices.map((price) => formatPrice({ price })),
);
console.log(
"Current customer product options:",
currentCustomerProduct?.options,
);
for (const price of fullProduct.prices) {
if (!isPrepaidPrice(price)) continue;