Fix bugs and change makefile

This commit is contained in:
Owen Schwartz
2024-10-20 12:55:28 -04:00
parent 16e2a262e9
commit 002614499b
13 changed files with 150 additions and 159 deletions

View File

@@ -11,7 +11,7 @@ import { eq } from 'drizzle-orm';
const addUserSiteSchema = z.object({
userId: z.string(),
siteId: z.string().optional().transform(stoi).pipe(z.number().int().positive().optional()),
siteId: z.string().transform(Number).pipe(z.number().int().positive()),
});
export async function addUserSite(req: Request, res: Response, next: NextFunction): Promise<any> {