fix: update subscription next cycle end floored
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user