Commit 36d5575
committed
fix(orm): use mapped type instead of Capitalize for ExtResultBase model keys
Iterate over GetModels<Schema> directly and remap keys with Uncapitalize,
instead of Uncapitalizing first and round-tripping with Capitalize. This
fixes breakage when model names start with a lowercase letter, since
Uncapitalize followed by Capitalize is not lossless (e.g. myModel ->
myModel -> MyModel, which no longer matches the schema key).1 parent 046e6c9 commit 36d5575
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
0 commit comments