Fixes mismatching behavior in including keys

- When including a key, parse.com would set to undefined all not found pointer, not parse-server
This commit is contained in:
Florent Vilmart
2016-03-02 19:38:42 -05:00
parent 1bfee45f64
commit 6ddc77601c
2 changed files with 52 additions and 2 deletions

View File

@@ -509,7 +509,7 @@ function replacePointers(object, path, replace) {
}
if (path.length == 0) {
if (object.__type == 'Pointer' && replace[object.objectId]) {
if (object.__type == 'Pointer') {
return replace[object.objectId];
}
return object;