mirror of
https://github.com/hex248/sprint.git
synced 2026-02-07 18:23:03 +00:00
5 seats for free
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user