From 4c27d1302e0e1b379bd0a86896b70687c6342f0d Mon Sep 17 00:00:00 2001 From: Milo Schwartz Date: Mon, 14 Oct 2024 22:01:00 -0400 Subject: [PATCH] remove subdomain from site --- server/routers/site/listSites.ts | 8 +------- src/app/[orgId]/sites/page.tsx | 1 + 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/server/routers/site/listSites.ts b/server/routers/site/listSites.ts index b8b52a58..1a8c6fcd 100644 --- a/server/routers/site/listSites.ts +++ b/server/routers/site/listSites.ts @@ -1,11 +1,6 @@ import { ActionsEnum, checkUserActionPermission } from "@server/auth/actions"; import { db } from "@server/db"; -import { - orgs, - roleSites, - sites, - userSites, -} from "@server/db/schema"; +import { orgs, roleSites, sites, userSites } from "@server/db/schema"; import HttpCode from "@server/types/HttpCode"; import response from "@server/utils/response"; import { and, eq, inArray, or, sql } from "drizzle-orm"; @@ -38,7 +33,6 @@ function querySites(orgId: string, accessibleSiteIds: number[]) { .select({ siteId: sites.siteId, name: sites.name, - subdomain: sites.subdomain, pubKey: sites.pubKey, subnet: sites.subnet, megabytesIn: sites.megabytesIn, diff --git a/src/app/[orgId]/sites/page.tsx b/src/app/[orgId]/sites/page.tsx index 5322c71d..15b86774 100644 --- a/src/app/[orgId]/sites/page.tsx +++ b/src/app/[orgId]/sites/page.tsx @@ -16,6 +16,7 @@ export default async function Page({ params }: SitesPageProps) { ); sites = res.data.data.sites; } catch (e) { + console.error("Error fetching sites", e); } return (