Skip to content

Commit

Permalink
Fix workaround to make join query run
Browse files Browse the repository at this point in the history
In e182744 this workaround was added so that if we are explicitly
querying on this join table it would run instead of bailing out early.

(This is necessary because the table we are querying is part of a Parse
Relation, not a Parse Class).

Unfortunately, the logic was _slightly_ off, preventing the query from
actually running. Oops!
  • Loading branch information
noahsilas authored and TylerBrock committed Sep 4, 2020
1 parent e755884 commit a73d2a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controllers/DatabaseController.js
Original file line number Diff line number Diff line change
Expand Up @@ -1418,7 +1418,7 @@ class DatabaseController {
);
}
} else if (pipeline) {
if (!classExists || className === '_Join:users:_Role') {
if (!classExists && className !== '_Join:users:_Role') {
return [];
} else {
return this.adapter.aggregate(
Expand Down

0 comments on commit a73d2a2

Please sign in to comment.