mirror of
https://github.com/fosrl/pangolin.git
synced 2025-12-12 10:58:06 +00:00
all resources at the base domain closes #137
This commit is contained in:
@@ -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 })
|
||||
|
||||
Reference in New Issue
Block a user