From 4a9ebb3f71a1dd84a7d10d9a0e07f11cd39f788c Mon Sep 17 00:00:00 2001 From: Owen Schwartz Date: Sun, 20 Oct 2024 12:24:35 -0400 Subject: [PATCH] Add org to domain --- server/routers/resource/createResource.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/routers/resource/createResource.ts b/server/routers/resource/createResource.ts index f6ac25d3..fbdca68a 100644 --- a/server/routers/resource/createResource.ts +++ b/server/routers/resource/createResource.ts @@ -75,7 +75,7 @@ export async function createResource(req: Request, res: Response, next: NextFunc } // Generate a unique resourceId - const resourceId = `${subdomain}.${org[0].domain}`; + const resourceId = `${subdomain}.${org[0].orgId}.${org[0].domain}`; // Create new resource in the database const newResource = await db.insert(resources).values({