This commit is contained in:
Owen
2026-06-29 15:24:16 -04:00
parent ff89a64453
commit d60c15b0ae
6 changed files with 15 additions and 15 deletions
+3 -3
View File
@@ -202,7 +202,7 @@ export async function createOrg(
if (build == "saas" && billingOrgIdForNewOrg) {
const usage = await usageService.getUsage(
billingOrgIdForNewOrg,
LimitId.ORGINIZATIONS
LimitId.ORGANIZATIONS
);
if (!usage) {
return next(
@@ -214,7 +214,7 @@ export async function createOrg(
}
const rejectOrgs = await usageService.checkLimitSet(
billingOrgIdForNewOrg,
LimitId.ORGINIZATIONS,
LimitId.ORGANIZATIONS,
{
...usage,
instantaneousValue: (usage.instantaneousValue || 0) + 1
@@ -431,7 +431,7 @@ export async function createOrg(
if (numOrgs) {
usageService.updateCount(
billingOrgIdForNewOrg || orgId,
LimitId.ORGINIZATIONS,
LimitId.ORGANIZATIONS,
numOrgs
);
}