fix explain on user class (#6650)

* added test case and fixed bug

* enabled test case only for mongodb
This commit is contained in:
Manuel
2020-04-28 20:45:01 +02:00
committed by GitHub
parent e78c07e169
commit 2b7223355e
2 changed files with 647 additions and 653 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -666,7 +666,7 @@ RestQuery.prototype.runFind = function(options = {}) {
return this.config.database
.find(this.className, this.restWhere, findOptions, this.auth)
.then(results => {
if (this.className === '_User') {
if (this.className === '_User' && findOptions.explain !== true) {
for (var result of results) {
cleanResultAuthData(result);
}