mirror of
https://github.com/fosrl/pangolin.git
synced 2025-07-29 23:25:58 +02:00
Converting more multi site
This commit is contained in:
parent
926ec831e2
commit
dac49f7fdc
2 changed files with 16 additions and 5 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue