5 seats for free

This commit is contained in:
2026-01-28 18:51:52 +00:00
parent db2c1dddfe
commit 260d0558ef
2 changed files with 2 additions and 2 deletions

View File

@@ -26,7 +26,7 @@ export async function updateSeatCount(userId: number) {
totalMembers += members.length;
}
const newQuantity = Math.max(1, totalMembers - 4);
const newQuantity = Math.max(1, totalMembers - 5);
// skip if quantity hasn't changed
if (newQuantity === subscription.quantity) {

View File

@@ -37,7 +37,7 @@ async function handler(req: BunRequest) {
totalMembers += members.length;
}
const quantity = Math.max(1, totalMembers - 4);
const quantity = Math.max(1, totalMembers - 5);
const priceId = billingPeriod === "annual" ? STRIPE_PRICE_ANNUAL : STRIPE_PRICE_MONTHLY;
// build customer data - use username as email if no email field exists