fix explain on user class (#6650)
* added test case and fixed bug * enabled test case only for mongodb
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -666,7 +666,7 @@ RestQuery.prototype.runFind = function(options = {}) {
|
|||||||
return this.config.database
|
return this.config.database
|
||||||
.find(this.className, this.restWhere, findOptions, this.auth)
|
.find(this.className, this.restWhere, findOptions, this.auth)
|
||||||
.then(results => {
|
.then(results => {
|
||||||
if (this.className === '_User') {
|
if (this.className === '_User' && findOptions.explain !== true) {
|
||||||
for (var result of results) {
|
for (var result of results) {
|
||||||
cleanResultAuthData(result);
|
cleanResultAuthData(result);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user