Commit 142b8dd
fix: Cast comparison values by attribute type in updateDocument
Cast individual values to their declared attribute type before
comparing with $old, skipping Operator instances. This normalizes
types degraded by cache JSON round-trips (e.g. float 1.0 → int 1)
without affecting the document that gets persisted.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 0380e4a commit 142b8dd
1 file changed
Lines changed: 18 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5596 | 5596 | | |
5597 | 5597 | | |
5598 | 5598 | | |
5599 | | - | |
5600 | 5599 | | |
5601 | 5600 | | |
5602 | 5601 | | |
5603 | 5602 | | |
5604 | 5603 | | |
| 5604 | + | |
| 5605 | + | |
| 5606 | + | |
| 5607 | + | |
| 5608 | + | |
| 5609 | + | |
5605 | 5610 | | |
5606 | 5611 | | |
5607 | 5612 | | |
| |||
5699 | 5704 | | |
5700 | 5705 | | |
5701 | 5706 | | |
| 5707 | + | |
| 5708 | + | |
| 5709 | + | |
| 5710 | + | |
| 5711 | + | |
| 5712 | + | |
| 5713 | + | |
| 5714 | + | |
| 5715 | + | |
| 5716 | + | |
| 5717 | + | |
| 5718 | + | |
5702 | 5719 | | |
5703 | 5720 | | |
5704 | 5721 | | |
| |||
0 commit comments