mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-30 22:49:27 +02:00
Add org to domain
This commit is contained in:
parent
b7ab96fe90
commit
4a9ebb3f71
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