fix: Allow less than 30 seats for orgs (#14995)

* fix: Allow less than 30 seats for orgs

* Add test

* Stub env variables
This commit is contained in:
Hariom Balhara authored and GitHub committed 2024-05-13 11:37:10 +00:00
1 parent fd64b0f468
commit 917c7b0764
5 files changed
+157 -7

No files matched your search

@@ -107,7 +107,7 @@ export async function patchHandler(req: NextApiRequest) {
if (IS_TEAM_BILLING_ENABLED) {
const checkoutSession = await purchaseTeamOrOrgSubscription({
teamId: _team.id,
seats: _team.members.length,
seatsUsed: _team.members.length,
userId,
pricePerSeat: null,
});