Move to string ordId

This commit is contained in:
Owen Schwartz 2024-10-14 15:11:18 -04:00
parent 0f3dada6cc
commit 9abb656d52
No known key found for this signature in database
GPG key ID: 8271FDFFD9E0CCBD
16 changed files with 28 additions and 26 deletions

View file

@ -11,7 +11,7 @@ import { eq, and } from 'drizzle-orm';
const createResourceParamsSchema = z.object({
siteId: z.number().int().positive(),
orgId: z.string().transform(Number).pipe(z.number().int().positive())
orgId: z.string()
});
// Define Zod schema for request body validation