Merge pull request #1235 from useautumn/fix/auto-enable-plan-isDefaultTriallFullProduct-skipDefault

fix: 🐛 a bug with isDefaultTrialFullProduct not passed correctly
This commit is contained in:
amianthus
2026-04-14 13:30:47 +01:00
committed by GitHub

View File

@@ -41,7 +41,7 @@ const getOverrideAutoEnableProduct = async ({
if (
!isFreeProduct({ prices: plan.prices }) &&
!isDefaultTrialFullProduct({ product: plan })
!isDefaultTrialFullProduct({ product: plan, skipDefault: true })
) {
throw new RecaseError({
message: `Auto-enable plan must be a free product, or have a free trial with 'card_required' as false`,