mirror of
https://github.com/fosrl/pangolin.git
synced 2025-07-10 22:14:58 +02:00
Add org to domain
This commit is contained in:
parent
0d8c7e5d44
commit
16e2a262e9
1 changed files with 1 additions and 1 deletions
|
@ -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({
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue