Commit e688cd2
fix(orm): clone QueryInfo objects in () to prevent mutation
- Change from [...this.slowQueries] to this.slowQueries.map((query) => ({ ...query }))
- Prevents callers from mutating the shared slowQueries buffer
- Ensures each QueryInfo object is properly shallow-copied
Co-authored-by: Yiming Cao <ymc9@users.noreply.github.com>1 parent e1ae8b6 commit e688cd2
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
433 | 433 | | |
434 | 434 | | |
435 | 435 | | |
436 | | - | |
| 436 | + | |
437 | 437 | | |
438 | 438 | | |
439 | 439 | | |
| |||
0 commit comments