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:
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,
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user