use strict zod objects and hide proto on targets

This commit is contained in:
Milo Schwartz 2024-11-14 00:00:17 -05:00
parent 9ede979887
commit 77408c3445
14 changed files with 154 additions and 162 deletions

View file

@ -12,11 +12,13 @@ import config from "@server/config";
import { fromError } from "zod-validation-error";
import { defaultRoleAllowedActions } from "../role";
const createOrgSchema = z.object({
orgId: z.string(),
name: z.string().min(1).max(255),
// domain: z.string().min(1).max(255).optional(),
});
const createOrgSchema = z
.object({
orgId: z.string(),
name: z.string().min(1).max(255),
// domain: z.string().min(1).max(255).optional(),
})
.strict();
const MAX_ORGS = 5;