Commit 5de8a67
fix(controls): dedupe policyIds/taskIds before validating length
validatePolicyIds / validateTaskIds compared findMany row count to the raw
input length. Duplicate ids in the request (e.g. [p1, p1, p2]) made the
input longer than the set of rows returned, so a legitimate request with
repeated ids was rejected as invalid. Dedupe via Set before the findMany
lookup and length check.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent d296e2a commit 5de8a67
1 file changed
+6
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
299 | 299 | | |
300 | 300 | | |
301 | 301 | | |
| 302 | + | |
302 | 303 | | |
303 | | - | |
| 304 | + | |
304 | 305 | | |
305 | 306 | | |
306 | | - | |
| 307 | + | |
307 | 308 | | |
308 | 309 | | |
309 | 310 | | |
| |||
314 | 315 | | |
315 | 316 | | |
316 | 317 | | |
| 318 | + | |
317 | 319 | | |
318 | | - | |
| 320 | + | |
319 | 321 | | |
320 | 322 | | |
321 | | - | |
| 323 | + | |
322 | 324 | | |
323 | 325 | | |
324 | 326 | | |
| |||
0 commit comments