From d1d94f5e469fc7470a4a847d1d6248ef81df09df Mon Sep 17 00:00:00 2001 From: David Nguyen Date: Tue, 16 Jun 2026 22:01:28 +1000 Subject: [PATCH] fix: nitpicks --- .../stripe/update-subscription-item-quantity.ts | 11 +---------- packages/lib/errors/app-error.ts | 1 - 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/packages/ee/server-only/stripe/update-subscription-item-quantity.ts b/packages/ee/server-only/stripe/update-subscription-item-quantity.ts index 4cc1397a9..7a1fd92aa 100644 --- a/packages/ee/server-only/stripe/update-subscription-item-quantity.ts +++ b/packages/ee/server-only/stripe/update-subscription-item-quantity.ts @@ -165,16 +165,7 @@ export const syncMemberCountWithStripeSeatPlan = async ( /** * Reconciles the Stripe seat quantity and organisation claim with the actual * member count at the start of a new billing period. - * - * Called from the `customer.subscription.updated` webhook when the billing - * period advances. The renewal invoice has already been generated at the - * previous (high-water) quantity by then — the reconciled count takes effect - * on the next invoice (accepted trade-off: removed seats bill for exactly - * one extra period). - * - * Runs with no prorations in either direction: no credits when shrinking, - * no retroactive charges when healing upward drift (e.g. unbilled SSO - * portal joins or lost grow races). + */ export const reconcileSeatsWithMemberCount = async (organisationId: string) => { const organisation = await prisma.organisation.findUnique({ diff --git a/packages/lib/errors/app-error.ts b/packages/lib/errors/app-error.ts index f993465d7..5a64814b6 100644 --- a/packages/lib/errors/app-error.ts +++ b/packages/lib/errors/app-error.ts @@ -36,7 +36,6 @@ export const genericErrorCodeToTrpcErrorCodeMap: Record