Commit 69464b9
committed
fix(webapp): bound the fixed-length flag key IN filters
CI's oxlint flags an unbounded Prisma `in:` filter: the list length becomes
the bind-parameter count, so each distinct length is a separate prepared
statement. Both lists here are compile-time constants, but boundedIn is what
the neighbouring call sites use and it needs no suppression comment. It pads
to the next power of two by repeating the last key, which an IN over a unique
column does not notice.1 parent 19ae402 commit 69464b9
2 files changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
255 | | - | |
| 255 | + | |
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
211 | | - | |
| 211 | + | |
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
| |||
0 commit comments