* Regression test for 2786 * Fix issue affecting selcting/including keys
This commit is contained in:
@@ -488,7 +488,6 @@ function includePath(config, auth, response, path, restOptions = {}) {
|
||||
pointersHash[className].add(pointer.objectId);
|
||||
}
|
||||
}
|
||||
|
||||
let includeRestOptions = {};
|
||||
if (restOptions.keys) {
|
||||
let keys = new Set(restOptions.keys.split(','));
|
||||
@@ -500,10 +499,14 @@ function includePath(config, auth, response, path, restOptions = {}) {
|
||||
return set;
|
||||
}
|
||||
}
|
||||
set.add(keyPath[i]);
|
||||
if (i < keyPath.length) {
|
||||
set.add(keyPath[i]);
|
||||
}
|
||||
return set;
|
||||
}, new Set());
|
||||
includeRestOptions.keys = Array.from(keySet).join(',');
|
||||
if (keySet.size > 0) {
|
||||
includeRestOptions.keys = Array.from(keySet).join(',');
|
||||
}
|
||||
}
|
||||
|
||||
let queryPromises = Object.keys(pointersHash).map((className) => {
|
||||
|
||||
Reference in New Issue
Block a user