mirror of
https://github.com/fosrl/pangolin.git
synced 2025-12-12 10:58:06 +00:00
Add org to domain
This commit is contained in:
@@ -75,7 +75,7 @@ export async function createResource(req: Request, res: Response, next: NextFunc
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Generate a unique resourceId
|
// 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
|
// Create new resource in the database
|
||||||
const newResource = await db.insert(resources).values({
|
const newResource = await db.insert(resources).values({
|
||||||
|
|||||||
Reference in New Issue
Block a user