Correct validation of inner keys

This commit is contained in:
Drew Gross
2016-05-17 15:57:25 -07:00
parent 0d856c1f23
commit b24ff151d5

View File

@@ -112,7 +112,6 @@ const transformInteriorValue = restValue => {
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");
}
// Handle atomic values
var value = transformInteriorAtom(restValue);
if (value !== CannotTransform) {