Trying to add site provider

This commit is contained in:
Owen Schwartz
2024-10-13 22:45:48 -04:00
parent 2d754c4279
commit 892dd39e6d
14 changed files with 138 additions and 52 deletions

View File

@@ -13,7 +13,7 @@ import { eq, and } from 'drizzle-orm';
const API_BASE_URL = "http://localhost:3000";
const createSiteParamsSchema = z.object({
orgId: z.number().int().positive(),
orgId: z.string().transform(Number).pipe(z.number().int().positive())
});
// Define Zod schema for request body validation