Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/RestQuery.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
Expand Down