Converting more multi site

This commit is contained in:
Owen
2025-03-26 21:39:12 -04:00
parent 926ec831e2
commit dac49f7fdc
2 changed files with 16 additions and 5 deletions

View File

@@ -18,9 +18,7 @@ import HttpCode from "@server/types/HttpCode";
import createHttpError from "http-errors";
import logger from "@server/logger";
import { eq, and } from "drizzle-orm";
import { addPeer } from "../newt/peers";
import { fromError } from "zod-validation-error";
import { newts } from "@server/db/schema";
import moment from "moment";
import { hashPassword } from "@server/auth/password";
@@ -122,7 +120,6 @@ export async function createClient(
const [newClient] = await trx
.insert(clients)
.values({
siteId,
orgId: site.orgId,
name,
subnet,