Add org to domain

This commit is contained in:
Owen Schwartz 2024-10-20 12:24:35 -04:00
parent b7ab96fe90
commit 4a9ebb3f71

View file

@ -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({