Skip to content

Commit 3172ceb

Browse files
authored
Merge pull request #705 from Mithesh54/trial-invite-fix
fix: trial flow
2 parents 98eac4c + e23686e commit 3172ceb

File tree

3 files changed

+7
-10
lines changed

3 files changed

+7
-10
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,6 @@
145145
},
146146
"packageManager": "[email protected]",
147147
"optionalDependencies": {
148-
"@sparrowapp-dev/stripe-billing": "^1.1.9"
148+
"@sparrowapp-dev/stripe-billing": "^1.2.2"
149149
}
150150
}

pnpm-lock.yaml

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/modules/billing/services/stripe-subscription.service.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1476,10 +1476,6 @@ export class StripeSubscriptionService {
14761476
return { success: true, message: "No license checking required" };
14771477
}
14781478

1479-
if (team?.billing.in_trial === true) {
1480-
return { success: true, message: "No license checking required" };
1481-
}
1482-
14831479
if (!userRepository) {
14841480
console.warn("UserRepository not provided to checkAndManageLicenses");
14851481
return {
@@ -1690,6 +1686,7 @@ export class StripeSubscriptionService {
16901686
newTotalSeats, // seats
16911687
"allow_incomplete", // payment_behavior
16921688
"unchanged", // billing cycle_anchor
1689+
team?.billing?.in_trial === true, // in_trial (optional)
16931690
);
16941691

16951692
// Handle 3DS authentication required

0 commit comments

Comments
 (0)