Commit 49e5c3c
fix(build): type enrollments array in seed-test-data route
The two enrollment objects had different shapes (one with product_id,
one without), producing a union type that .upsert() rejected as excess
properties, failing the production build. Annotate the array with an
explicit type where product_id is optional.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 8fee2d2 commit 49e5c3c
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
74 | 80 | | |
75 | 81 | | |
76 | 82 | | |
| |||
0 commit comments