Do some triple equals for great justice (#1499)

This commit is contained in:
Tyler Brock
2016-04-14 15:44:22 -07:00
committed by Drew
parent d57e384dcb
commit 51970fb470

View File

@@ -374,7 +374,7 @@ RestQuery.prototype.replaceDontSelect = function() {
RestQuery.prototype.runFind = function() {
return this.config.database.find(
this.className, this.restWhere, this.findOptions).then((results) => {
if (this.className == '_User') {
if (this.className === '_User') {
for (var result of results) {
delete result.password;
}
@@ -545,8 +545,8 @@ function replacePointers(object, path, replace) {
return object;
}
if (path.length == 0) {
if (object.__type == 'Pointer') {
if (path.length === 0) {
if (object.__type === 'Pointer') {
return replace[object.objectId];
}
return object;