Do some triple equals for great justice (#1499)
This commit is contained in:
@@ -374,7 +374,7 @@ RestQuery.prototype.replaceDontSelect = function() {
|
|||||||
RestQuery.prototype.runFind = function() {
|
RestQuery.prototype.runFind = function() {
|
||||||
return this.config.database.find(
|
return this.config.database.find(
|
||||||
this.className, this.restWhere, this.findOptions).then((results) => {
|
this.className, this.restWhere, this.findOptions).then((results) => {
|
||||||
if (this.className == '_User') {
|
if (this.className === '_User') {
|
||||||
for (var result of results) {
|
for (var result of results) {
|
||||||
delete result.password;
|
delete result.password;
|
||||||
}
|
}
|
||||||
@@ -545,8 +545,8 @@ function replacePointers(object, path, replace) {
|
|||||||
return object;
|
return object;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (path.length == 0) {
|
if (path.length === 0) {
|
||||||
if (object.__type == 'Pointer') {
|
if (object.__type === 'Pointer') {
|
||||||
return replace[object.objectId];
|
return replace[object.objectId];
|
||||||
}
|
}
|
||||||
return object;
|
return object;
|
||||||
|
|||||||
Reference in New Issue
Block a user