Add org to domain

This commit is contained in:
Owen Schwartz 2024-10-20 12:24:35 -04:00
parent 0d8c7e5d44
commit 16e2a262e9
No known key found for this signature in database
GPG key ID: 8271FDFFD9E0CCBD

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