Update member resources page and testing new org counts

This commit is contained in:
Owen
2026-02-17 20:01:15 -08:00
parent a2ed22bfcc
commit 6661a76aa8
7 changed files with 347 additions and 39 deletions

View File

@@ -171,16 +171,7 @@ export async function createOrg(
}
}
if (build == "saas") {
if (!billingOrgIdForNewOrg) {
return next(
createHttpError(
HttpCode.INTERNAL_SERVER_ERROR,
"Billing org not found for user. Cannot create new organization."
)
);
}
if (build == "saas" && billingOrgIdForNewOrg) {
const usage = await usageService.getUsage(billingOrgIdForNewOrg, FeatureId.ORGINIZATIONS);
if (!usage) {
return next(