Building a new website everyday to kickstart any new project I am recruited for.
sets is a list of numbers instead of objects
1 file changed, +1 -5
+1-5008_hygofitweb/app/api/generate/route.ts
| @@ -10,11 +10,7 @@ const SCHEMA = z.object({ | ||
| 10 | 10 | data: z.array( |
| 11 | 11 | z.object({ |
| 12 | 12 | name: z.string(), |
| 13 | - sets: z.array( | |
| 14 | - z.object({ | |
| 15 | - reps: z.number().int(), | |
| 16 | - }) | |
| 17 | - ), | |
| 13 | + sets: z.array(z.number().int()), | |
| 18 | 14 | }) |
| 19 | 15 | ), |
| 20 | 16 | }); |