Commit 1f9b6fe
committed
fix: Prevent TypeError when type is not a string
Added a type check in mongoFieldToParseSchemaField to ensure `type` is a string
before calling `startsWith`. This prevents crashes when Parse Server processes
MongoDB schema fields with undefined, null, or unexpected type values.
Closes #98471 parent 4b3f10b commit 1f9b6fe
1 file changed
+8
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
5 | 13 | | |
6 | 14 | | |
7 | 15 | | |
| |||
0 commit comments