mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-12 13:51:35 +02:00
all resources at the base domain closes #137
This commit is contained in:
parent
0840c166ab
commit
e475c1ea50
15 changed files with 496 additions and 141 deletions
|
@ -23,7 +23,12 @@ export async function copyInConfig() {
|
|||
const allResources = await trx.select().from(resources);
|
||||
|
||||
for (const resource of allResources) {
|
||||
const fullDomain = `${resource.subdomain}.${domain}`;
|
||||
let fullDomain = "";
|
||||
if (resource.isBaseDomain) {
|
||||
fullDomain = domain;
|
||||
} else {
|
||||
fullDomain = `${resource.subdomain}.${domain}`;
|
||||
}
|
||||
await trx
|
||||
.update(resources)
|
||||
.set({ fullDomain })
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue