From 84ca275f1ea99f332d249f88b79a4741a526e2c2 Mon Sep 17 00:00:00 2001 From: Owen Date: Tue, 15 Jul 2025 16:15:22 -0700 Subject: [PATCH] Remove subnet check on the org for now --- server/routers/org/createOrg.ts | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/server/routers/org/createOrg.ts b/server/routers/org/createOrg.ts index 245e0928..9ac65115 100644 --- a/server/routers/org/createOrg.ts +++ b/server/routers/org/createOrg.ts @@ -89,21 +89,22 @@ export async function createOrg( ); } + // TODO: for now we are making all of the orgs the same subnet // make sure the subnet is unique - const subnetExists = await db - .select() - .from(orgs) - .where(eq(orgs.subnet, subnet)) - .limit(1); + // const subnetExists = await db + // .select() + // .from(orgs) + // .where(eq(orgs.subnet, subnet)) + // .limit(1); - if (subnetExists.length > 0) { - return next( - createHttpError( - HttpCode.CONFLICT, - `Subnet ${subnet} already exists` - ) - ); - } + // if (subnetExists.length > 0) { + // return next( + // createHttpError( + // HttpCode.CONFLICT, + // `Subnet ${subnet} already exists` + // ) + // ); + // } // make sure the orgId is unique const orgExists = await db