Correct validation of inner keys
This commit is contained in:
@@ -112,7 +112,6 @@ const transformInteriorValue = restValue => {
|
|||||||
if (typeof restValue === 'object' && Object.keys(restValue).some(key => key.includes('$') || key.includes('.'))) {
|
if (typeof restValue === 'object' && Object.keys(restValue).some(key => key.includes('$') || key.includes('.'))) {
|
||||||
throw new Parse.Error(Parse.Error.INVALID_NESTED_KEY, "Nested keys should not contain the '$' or '.' characters");
|
throw new Parse.Error(Parse.Error.INVALID_NESTED_KEY, "Nested keys should not contain the '$' or '.' characters");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Handle atomic values
|
// Handle atomic values
|
||||||
var value = transformInteriorAtom(restValue);
|
var value = transformInteriorAtom(restValue);
|
||||||
if (value !== CannotTransform) {
|
if (value !== CannotTransform) {
|
||||||
|
|||||||
Reference in New Issue
Block a user